From 420e9c4662ee0bbdf2503f2d77d80d541dceba07 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Fri, 15 Jan 2021 18:39:30 +0100 Subject: [PATCH] Updated faulty getter function ref #90 --- src/models/actions/update/UpdateRunnerOrganisation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/actions/update/UpdateRunnerOrganisation.ts b/src/models/actions/update/UpdateRunnerOrganisation.ts index 795e20c..20656ec 100644 --- a/src/models/actions/update/UpdateRunnerOrganisation.ts +++ b/src/models/actions/update/UpdateRunnerOrganisation.ts @@ -29,7 +29,7 @@ export class UpdateRunnerOrganisation extends CreateRunnerGroup { */ public async getAddress(): Promise
{ if (!this.address) { return null; } - let address = await getConnectionManager().get().getRepository(Address).findOne({ id: this.address.id }); + let address = await getConnectionManager().get().getRepository(Address).findOne({ id: this.address }); if (!address) { throw new AddressNotFoundError; } return address; }