don't notify for hold invoices
This commit is contained in:
parent
ed722fffdd
commit
b7d0a373f4
|
@ -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)`
|
||||
|
|
|
@ -382,6 +382,9 @@ export default {
|
|||
userId: me.id,
|
||||
confirmedAt: {
|
||||
gt: lastChecked
|
||||
},
|
||||
isHeld: {
|
||||
not: true
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue