Fix 'column Item.day does not exist'

This commit is contained in:
ekzyis 2024-01-14 19:10:31 +01:00
parent 11b05b0f8a
commit b7413e9e32
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ export default {
JOIN "Item" on "Item"."userId" = users.id JOIN "Item" on "Item"."userId" = users.id
WHERE "Item"."parentId" IS NULL WHERE "Item"."parentId" IS NULL
AND NOT users."hideFromTopUsers" AND NOT users."hideFromTopUsers"
AND ${viewIntervalClause(range, 'Item')} AND ${intervalClause(range, 'Item')}
GROUP BY users.id GROUP BY users.id
ORDER BY nposts DESC NULLS LAST, users.created_at DESC ORDER BY nposts DESC NULLS LAST, users.created_at DESC
OFFSET $3 OFFSET $3