From 42f72acb6020230947904aa20d034b17da0449c7 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Wed, 29 Sep 2021 11:46:55 -0400 Subject: [PATCH] Fix aggregation --- api/src/utils/sanitize-query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/utils/sanitize-query.ts b/api/src/utils/sanitize-query.ts index 33c8b10991..c9c31b87a2 100644 --- a/api/src/utils/sanitize-query.ts +++ b/api/src/utils/sanitize-query.ts @@ -98,7 +98,7 @@ function sanitizeSort(rawSort: any) { } function sanitizeAggregate(rawAggregate: any): Aggregate { - let aggregate: Aggregate = {}; + let aggregate: Aggregate = rawAggregate; if (typeof rawAggregate === 'string') { try {