From beb100e935f32a3b77b7a6e9aa8205fa2f42ca2b Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Thu, 1 Jul 2021 09:14:56 +0200 Subject: [PATCH] Fix - Accidental switch of resource_types aggregation --- app/graphql/types/work_connection_with_total_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/graphql/types/work_connection_with_total_type.rb b/app/graphql/types/work_connection_with_total_type.rb index 1aebf9b98..c8902a8de 100644 --- a/app/graphql/types/work_connection_with_total_type.rb +++ b/app/graphql/types/work_connection_with_total_type.rb @@ -42,7 +42,7 @@ def published def resource_types if object.aggregations.authors - facet_by_combined_key(object.aggregations.authors.buckets) + facet_by_combined_key(object.aggregations.resource_types.buckets) else [] end