Skip to content

Commit d21fea3

Browse files
authored
src/donations: Don't update updatedAt field on iris re-import (#599)
Since campaign donations are ordered by updatedAt field on the front-end, this causes to bank donations to reappear at top every hour. Temporary solution until we figure out, the reason updating of imported donation is needed.
1 parent c032ef6 commit d21fea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/src/donations/donations.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ export class DonationsService {
583583
//Donation exists, so updating with incoming donation without increasing vault amounts
584584
await this.prisma.donation.update({
585585
where: { extPaymentIntentId: donationDto.extPaymentIntentId },
586-
data: donationDto,
586+
data: { ...donationDto, updatedAt: existingDonation.updatedAt },
587587
})
588588
return ImportStatus.UPDATED
589589
})

0 commit comments

Comments
 (0)