@@ -33,6 +33,7 @@ export class CreateDistanceDonation extends CreateDonation {
 | 
				
			|||||||
        let newDonation = new DistanceDonation;
 | 
					        let newDonation = new DistanceDonation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        newDonation.amountPerDistance = this.amountPerDistance;
 | 
					        newDonation.amountPerDistance = this.amountPerDistance;
 | 
				
			||||||
 | 
					        newDonation.payedAmount = this.payedAmount;
 | 
				
			||||||
        newDonation.donor = await this.getDonor();
 | 
					        newDonation.donor = await this.getDonor();
 | 
				
			||||||
        newDonation.runner = await this.getRunner();
 | 
					        newDonation.runner = await this.getRunner();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,6 +16,12 @@ export abstract class CreateDonation {
 | 
				
			|||||||
    @IsPositive()
 | 
					    @IsPositive()
 | 
				
			||||||
    donor: number;
 | 
					    donor: number;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * The donation's payed amount in the smalles unit of your currency (default: euro cent).
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    @IsInt()
 | 
				
			||||||
 | 
					    payedAmount: number;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Creates a new Donation entity from this.
 | 
					     * Creates a new Donation entity from this.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,6 +21,7 @@ export class CreateFixedDonation extends CreateDonation {
 | 
				
			|||||||
        let newDonation = new FixedDonation;
 | 
					        let newDonation = new FixedDonation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        newDonation.amount = this.amount;
 | 
					        newDonation.amount = this.amount;
 | 
				
			||||||
 | 
					        newDonation.payedAmount = this.payedAmount;
 | 
				
			||||||
        newDonation.donor = await this.getDonor();
 | 
					        newDonation.donor = await this.getDonor();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return newDonation;
 | 
					        return newDonation;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user