don't notify for hold invoices
This commit is contained in:
parent
ed722fffdd
commit
b7d0a373f4
@ -183,6 +183,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 created_at <= $2
|
AND created_at <= $2
|
||||||
ORDER BY "sortTime" DESC
|
ORDER BY "sortTime" DESC
|
||||||
LIMIT ${LIMIT}+$3)`
|
LIMIT ${LIMIT}+$3)`
|
||||||
|
@ -382,6 +382,9 @@ export default {
|
|||||||
userId: me.id,
|
userId: me.id,
|
||||||
confirmedAt: {
|
confirmedAt: {
|
||||||
gt: lastChecked
|
gt: lastChecked
|
||||||
|
},
|
||||||
|
isHeld: {
|
||||||
|
not: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user