Skip to content

Commit

Permalink
src/donations: Set donation record date to payment's
Browse files Browse the repository at this point in the history
When syncing donation with payment, use payment's createdAt updatedAt params.
  • Loading branch information
sashko9807 committed Mar 16, 2024
1 parent 8b800c6 commit fa21e10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/api/src/donations/donations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,8 @@ export class DonationsService {
where: { id: donationId },
data: {
amount: payment.amount,
createdAt: payment.createdAt,
updatedAt: payment.updatedAt,
},
})
})
Expand Down

0 comments on commit fa21e10

Please sign in to comment.