From a7a96a74092d89f2ab84dabd77551052bfe2aea3 Mon Sep 17 00:00:00 2001 From: Rob Kaufman Date: Mon, 6 Jan 2025 17:51:21 -0800 Subject: [PATCH] use the more generically available term for custom queries across adapters --- app/factories/bulkrax/valkyrie_object_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/factories/bulkrax/valkyrie_object_factory.rb b/app/factories/bulkrax/valkyrie_object_factory.rb index e49d7c7b..99a35602 100644 --- a/app/factories/bulkrax/valkyrie_object_factory.rb +++ b/app/factories/bulkrax/valkyrie_object_factory.rb @@ -182,7 +182,7 @@ def self.search_by_property(value:, klass:, field: nil, name_field: nil, **) return if value.blank? # Return nil or a single object. - Hyrax.query_service.custom_query.find_by_model_and_property_value(model: klass, property: name_field, value: value) + Hyrax.query_service.custom_queries.find_by_model_and_property_value(model: klass, property: name_field, value: value) end # rubocop:enable Metrics/ParameterLists