diff --git a/app/models/concerns/indexable.rb b/app/models/concerns/indexable.rb index ae183c2dc..cad216f4d 100644 --- a/app/models/concerns/indexable.rb +++ b/app/models/concerns/indexable.rb @@ -1219,7 +1219,7 @@ def delete_by_query(options = {}) client = Elasticsearch::Model.client response = - client.delete_by_query(index: options[:index], body: { query: { query_string: { query: options[:query] }}}) + client.delete_by_query(index: options[:index], body: { query: { query_string: { query: options[:query] } } }) if response.to_h["deleted"] "Deleted #{response.to_h['deleted'].to_i} DOIs."