diff --git a/apps/api/src/tasks/bank-import/import-transactions.task.ts b/apps/api/src/tasks/bank-import/import-transactions.task.ts index fb639f276..50d125e10 100644 --- a/apps/api/src/tasks/bank-import/import-transactions.task.ts +++ b/apps/api/src/tasks/bank-import/import-transactions.task.ts @@ -512,7 +512,11 @@ export class IrisTasks { data.map((trx) => this.prisma.bankTransaction.upsert({ where: { id: trx.id }, - update: { bankDonationStatus: trx.bankDonationStatus }, + update: { + bankDonationStatus: trx.description.startsWith('af_') + ? trx.bankDonationStatus + : undefined, + }, create: { ...trx }, }), ),