From c49ecb76f7bf004df49622898e7c567842c888bc Mon Sep 17 00:00:00 2001 From: ikprk Date: Tue, 16 Jul 2024 13:23:37 +0200 Subject: [PATCH] Fix resolver for most interacted entity --- src/server-extension/resolvers/StateResolver/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server-extension/resolvers/StateResolver/index.ts b/src/server-extension/resolvers/StateResolver/index.ts index 3a1e12b73..3fd5ff0b0 100644 --- a/src/server-extension/resolvers/StateResolver/index.ts +++ b/src/server-extension/resolvers/StateResolver/index.ts @@ -93,14 +93,14 @@ SELECT FROM admin.user_interaction_count WHERE - type = $1 AND day_timestamp >= NOW() - INTERVAL '$2 DAYS' + type = $1 AND day_timestamp >= NOW() - INTERVAL '${args.period} DAYS' GROUP BY entity_id ORDER BY entryCount DESC LIMIT 10; `, - [args.type, args.period] + [args.type] ) return result.map((res) => ({