parent
bbaee7cd4d
commit
56cedf0144
@ -22,7 +22,7 @@ export abstract class CreateDonation {
|
|||||||
public abstract toEntity(): Promise<Donation>;
|
public abstract toEntity(): Promise<Donation>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a runner based on the runner id provided via this.runner.
|
* Gets a donor based on the donor id provided via this.donor.
|
||||||
*/
|
*/
|
||||||
public async getDonor(): Promise<Donor> {
|
public async getDonor(): Promise<Donor> {
|
||||||
const donor = await getConnection().getRepository(Donor).findOne({ id: this.donor });
|
const donor = await getConnection().getRepository(Donor).findOne({ id: this.donor });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user