Merge pull request #750 from stackernews/fix-day-filter

Fix 'column Item.day does not exist'
This commit is contained in:
Keyan 2024-01-14 13:01:00 -06:00 committed by GitHub
commit 75bf4aced9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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