Skip to content

Commit

Permalink
Fix resolver for most interacted entity
Browse files Browse the repository at this point in the history
  • Loading branch information
ikprk committed Jul 16, 2024
1 parent 784b4c2 commit c49ecb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server-extension/resolvers/StateResolver/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down

0 comments on commit c49ecb7

Please sign in to comment.