Updated faulty getter function

ref #90
This commit is contained in:
Nicolai Ort 2021-01-15 18:39:30 +01:00
parent 98d6a1cc64
commit 420e9c4662
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export class UpdateRunnerOrganisation extends CreateRunnerGroup {
*/
public async getAddress(): Promise<Address> {
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;
}