From af09fd08cd4321928d4c9efbc1fa7c15848e619d Mon Sep 17 00:00:00 2001 From: Soxasora Date: Tue, 7 Jan 2025 00:53:45 +0100 Subject: [PATCH] add comment --- api/paidAction/zap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/paidAction/zap.js b/api/paidAction/zap.js index de4ea2518..f7f0778f4 100644 --- a/api/paidAction/zap.js +++ b/api/paidAction/zap.js @@ -206,6 +206,7 @@ export async function nonCriticalSideEffects ({ invoice, actIds }, { models }) { where: invoice ? { invoiceId: invoice.id } : { id: { in: actIds } }, include: { item: true } }) + // avoid duplicate notifications by checking if there are any other pending acts on the item const pendingActs = await models.itemAct.count({ where: { itemId: itemAct.itemId,