Added payed amount to crealte classes

ref #193
This commit is contained in:
2021-04-14 18:17:26 +02:00
parent d64f470b60
commit 71542bc388
3 changed files with 8 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ export class CreateDistanceDonation extends CreateDonation {
let newDonation = new DistanceDonation;
newDonation.amountPerDistance = this.amountPerDistance;
newDonation.payedAmount = this.payedAmount;
newDonation.donor = await this.getDonor();
newDonation.runner = await this.getRunner();