diff --git a/search/src/main/scala/weco/api/search/services/WorksAggregationsBuilder.scala b/search/src/main/scala/weco/api/search/services/WorksAggregationsBuilder.scala index 9533c6087..f53a93b7d 100644 --- a/search/src/main/scala/weco/api/search/services/WorksAggregationsBuilder.scala +++ b/search/src/main/scala/weco/api/search/services/WorksAggregationsBuilder.scala @@ -133,9 +133,9 @@ object WorksAggregationsBuilder case _: GenreIdFilter => List(WorkAggregationRequest.GenreId) case _: SubjectLabelFilter => List(WorkAggregationRequest.SubjectLabel) case _: SubjectIdFilter => List(WorkAggregationRequest.SubjectId) - case _: ContributorsIdFilter => - List(WorkAggregationRequest.ContributorLabel) case _: ContributorsLabelFilter => + List(WorkAggregationRequest.ContributorLabel) + case _: ContributorsIdFilter => List(WorkAggregationRequest.ContributorId) case _: LicenseFilter => List(WorkAggregationRequest.License) case _: AvailabilitiesFilter =>