fix deposits not showing up in notifications

This commit is contained in:
keyan 2023-09-18 19:30:26 -05:00
parent 14d2573dd2
commit 2afb8dc231
2 changed files with 2 additions and 4 deletions

View File

@ -205,7 +205,7 @@ export default {
FROM "Invoice" FROM "Invoice"
WHERE "Invoice"."userId" = $1 WHERE "Invoice"."userId" = $1
AND "confirmedAt" IS NOT NULL AND "confirmedAt" IS NOT NULL
AND NOT "isHeld" AND "isHeld" IS NULL
AND created_at <= $2 AND created_at <= $2
ORDER BY "sortTime" DESC ORDER BY "sortTime" DESC
LIMIT ${LIMIT}+$3)` LIMIT ${LIMIT}+$3)`

View File

@ -422,9 +422,7 @@ export default {
confirmedAt: { confirmedAt: {
gt: lastChecked gt: lastChecked
}, },
isHeld: { isHeld: null
not: true
}
} }
}) })
if (invoice) { if (invoice) {