diff --git a/api/resolvers/notifications.js b/api/resolvers/notifications.js index f17eed52..241eded2 100644 --- a/api/resolvers/notifications.js +++ b/api/resolvers/notifications.js @@ -205,7 +205,7 @@ export default { FROM "Invoice" WHERE "Invoice"."userId" = $1 AND "confirmedAt" IS NOT NULL - AND NOT "isHeld" + AND "isHeld" IS NULL AND created_at <= $2 ORDER BY "sortTime" DESC LIMIT ${LIMIT}+$3)` diff --git a/api/resolvers/user.js b/api/resolvers/user.js index 90e9c22c..9e2a5bf1 100644 --- a/api/resolvers/user.js +++ b/api/resolvers/user.js @@ -422,9 +422,7 @@ export default { confirmedAt: { gt: lastChecked }, - isHeld: { - not: true - } + isHeld: null } }) if (invoice) {