Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Soxasora committed Jan 6, 2025
1 parent ec8377e commit af09fd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/paidAction/zap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit af09fd0

Please sign in to comment.