Skip to content

Commit

Permalink
πŸ› Fix batch remove and rerun (#935)
Browse files Browse the repository at this point in the history
The remove and rerun option was throwing a NoMethodError for `not` on a
`Arel::Attributes::Attribute` object.
  • Loading branch information
kirkkwang authored Mar 12, 2024
1 parent 25f1604 commit db6cacf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/parsers/bulkrax/application_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def rebuild_entry_query(type, statuses)
type_col = Bulkrax::Entry.arel_table['type']
status_col = Bulkrax::Entry.arel_table['status_message']

query = (type == 'work' ? type_col.not.matches(%w[collection file_set]) : type_col.matches(type.camelize))
query = (type == 'work' ? type_col.does_not_match_all(%w[collection file_set]) : type_col.matches(type.camelize))
query.and(status_col.in(statuses))
end

Expand Down

0 comments on commit db6cacf

Please sign in to comment.