exclude users spent sats from their stacked count
This commit is contained in:
parent
129ec89b68
commit
7d4324eb33
|
@ -48,7 +48,7 @@ export default {
|
|||
FROM "ItemAct"
|
||||
JOIN "Item" on "ItemAct"."itemId" = "Item".id
|
||||
JOIN users on "Item"."userId" = users.id
|
||||
WHERE act <> 'BOOST' AND "ItemAct".created_at <= $1
|
||||
WHERE act <> 'BOOST' AND "ItemAct"."userId" <> users.id AND "ItemAct".created_at <= $1
|
||||
${topClause(within)}
|
||||
GROUP BY users.id, users.name
|
||||
ORDER BY stacked DESC NULLS LAST, users.created_at DESC
|
||||
|
|
Loading…
Reference in New Issue