Skip to content

Commit

Permalink
Fix sumCollectiveTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavlrsn committed Jan 31, 2024
1 parent d1863d9 commit c8a1e1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/lib/budget.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,11 @@ export async function sumCollectivesTransactions(
} else if (transactionType === 'CREDIT_WITH_HOST_FEE_AND_PAYMENT_PROCESSOR_FEE') {
where = {
...where,
[Op.or]: [{ type: CREDIT }, { type: DEBIT, kind: 'HOST_FEE' }, { type: DEBIT, kind: 'PAYMENT_PROCESSOR_FEE' }],
[Op.or]: [
{ type: CREDIT },
{ type: DEBIT, kind: 'HOST_FEE' },
{ type: DEBIT, kind: 'PAYMENT_PROCESSOR_FEE', OrderId: { [Op.not]: null } },
],
};
} else {
where.type = transactionType;
Expand Down

0 comments on commit c8a1e1e

Please sign in to comment.