Added payed amount to update classes

ref #193
This commit is contained in:
2021-04-14 18:19:26 +02:00
parent 71542bc388
commit 99307423c5
2 changed files with 7 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ export class UpdateFixedDonation extends UpdateDonation {
*/
public async update(donation: FixedDonation): Promise<FixedDonation> {
donation.amount = this.amount;
donation.payedAmount = this.payedAmount;
donation.donor = await this.getDonor();
return donation;