fix deposits not showing up in notifications
This commit is contained in:
parent
14d2573dd2
commit
2afb8dc231
|
@ -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)`
|
||||||
|
|
|
@ -422,9 +422,7 @@ export default {
|
||||||
confirmedAt: {
|
confirmedAt: {
|
||||||
gt: lastChecked
|
gt: lastChecked
|
||||||
},
|
},
|
||||||
isHeld: {
|
isHeld: null
|
||||||
not: true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (invoice) {
|
if (invoice) {
|
||||||
|
|
Loading…
Reference in New Issue