Other classed are now using the new Address class rather than the old location placeholder

ref #11
This commit is contained in:
Nicolai Ort 2020-12-01 19:06:56 +01:00
parent 2bd0cbadbe
commit dca9aef258
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import {
IsPhoneNumber,
IsString,
} from "class-validator";
import { Address } from "./Address";
/**
* Defines the participant interface.
@ -52,7 +53,7 @@ export abstract class Participant {
@Column()
@IsOptional()
//TODO: Relationship
address?: Location;
address?: Address;
/**
* The participant's phone number.

View File

@ -1,6 +1,7 @@
import { Entity, Column } from "typeorm";
import { IsOptional,} from "class-validator";
import { RunnerGroup } from "./RunnerGroup";
import { Address } from "./Address";
/**
* Defines a runner organisation (business or school for example).
@ -15,5 +16,5 @@ export class RunnerOrganisation extends RunnerGroup {
@Column()
@IsOptional()
//TODO: Relationship
address?: Location;
address?: Address;
}