Fixed spelling
All checks were successful
continuous-integration/drone/pr Build is passing

ref #193
This commit is contained in:
2021-04-14 18:54:02 +02:00
parent 8ae4b85827
commit da266a8dd6
13 changed files with 38 additions and 37 deletions

View File

@@ -35,12 +35,12 @@ export abstract class Donation {
public abstract get amount(): number;
/**
* The donation's payed amount in cents (or whatever your currency's smallest unit is.).
* Used to mark donations as payed.
* The donation's paid amount in cents (or whatever your currency's smallest unit is.).
* Used to mark donations as paid.
*/
@Column({ nullable: true })
@IsInt()
payedAmount: number;
paidAmount: number;
/**
* Turns this entity into it's response class.

View File

@@ -34,12 +34,12 @@ export class Donor extends Participant {
}
/**
* Returns the total payed donations of a donor based on his linked donations.
* Returns the total paid donations of a donor based on his linked donations.
*/
@IsInt()
public get payedDonationAmount(): number {
public get paidDonationAmount(): number {
if (!this.donations) { return 0; }
return this.donations.reduce((sum, current) => sum + current.payedAmount, 0);
return this.donations.reduce((sum, current) => sum + current.paidAmount, 0);
}
/**