don't notify for hold invoices

This commit is contained in:
keyan 2023-08-31 11:38:45 -05:00
parent ed722fffdd
commit b7d0a373f4
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -382,6 +382,9 @@ export default {
userId: me.id,
confirmedAt: {
gt: lastChecked
},
isHeld: {
not: true
}
}
})