Skip to content

Commit

Permalink
fix lnurlp notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Nov 7, 2024
1 parent b7e2d73 commit a5f966b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/resolvers/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,14 @@ export default {
FROM "Invoice"
WHERE "Invoice"."userId" = $1
AND "confirmedAt" IS NOT NULL
AND "isHeld" IS NULL
AND "actionState" = 'PAID'
AND "actionType" = 'TRANSFER'
AND created_at < $2
AND NOT EXISTS (
SELECT 1
FROM "InvoiceForward"
WHERE "InvoiceForward"."invoiceId" = "Invoice".id
)
ORDER BY "sortTime" DESC
LIMIT ${LIMIT})`
)
Expand Down

0 comments on commit a5f966b

Please sign in to comment.