Fix 'column Item.day does not exist'
This commit is contained in:
parent
11b05b0f8a
commit
b7413e9e32
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue