From b7413e9e325510e1f5cb550a2b7f720b2e5fd981 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 14 Jan 2024 19:10:31 +0100 Subject: [PATCH] Fix 'column Item.day does not exist' --- api/resolvers/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/user.js b/api/resolvers/user.js index aa4266b1..07d6164f 100644 --- a/api/resolvers/user.js +++ b/api/resolvers/user.js @@ -186,7 +186,7 @@ export default { JOIN "Item" on "Item"."userId" = users.id WHERE "Item"."parentId" IS NULL AND NOT users."hideFromTopUsers" - AND ${viewIntervalClause(range, 'Item')} + AND ${intervalClause(range, 'Item')} GROUP BY users.id ORDER BY nposts DESC NULLS LAST, users.created_at DESC OFFSET $3