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"
WHERE "Invoice"."userId" = $1
AND "confirmedAt" IS NOT NULL
AND NOT "isHeld"
AND "isHeld" IS NULL
AND created_at <= $2
ORDER BY "sortTime" DESC
LIMIT ${LIMIT}+$3)`

View File

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