Renamed files and classed from *Organisation* to *Organization*📝
ref #117
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { IsInt, IsOptional, IsString } from "class-validator";
|
||||
import { ChildEntity, Column, OneToMany } from "typeorm";
|
||||
import { ResponseRunnerOrganisation } from '../responses/ResponseRunnerOrganisation';
|
||||
import { ResponseRunnerOrganization } from '../responses/ResponseRunnerOrganization';
|
||||
import { Address } from './Address';
|
||||
import { Runner } from './Runner';
|
||||
import { RunnerGroup } from "./RunnerGroup";
|
||||
import { RunnerTeam } from "./RunnerTeam";
|
||||
|
||||
/**
|
||||
* Defines the RunnerOrganisation entity.
|
||||
* Defines the RunnerOrganization entity.
|
||||
* This usually is a school, club or company.
|
||||
*/
|
||||
@ChildEntity()
|
||||
export class RunnerOrganisation extends RunnerGroup {
|
||||
export class RunnerOrganization extends RunnerGroup {
|
||||
|
||||
/**
|
||||
* The organizations's address.
|
||||
@@ -68,7 +68,7 @@ export class RunnerOrganisation extends RunnerGroup {
|
||||
/**
|
||||
* Turns this entity into it's response class.
|
||||
*/
|
||||
public toResponse(): ResponseRunnerOrganisation {
|
||||
return new ResponseRunnerOrganisation(this);
|
||||
public toResponse(): ResponseRunnerOrganization {
|
||||
return new ResponseRunnerOrganization(this);
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import { IsNotEmpty } from "class-validator";
|
||||
import { ChildEntity, ManyToOne } from "typeorm";
|
||||
import { ResponseRunnerTeam } from '../responses/ResponseRunnerTeam';
|
||||
import { RunnerGroup } from "./RunnerGroup";
|
||||
import { RunnerOrganisation } from "./RunnerOrganisation";
|
||||
import { RunnerOrganization } from "./RunnerOrganization";
|
||||
|
||||
/**
|
||||
* Defines the RunnerTeam entity.
|
||||
@@ -13,11 +13,11 @@ export class RunnerTeam extends RunnerGroup {
|
||||
|
||||
/**
|
||||
* The team's parent group.
|
||||
* Every team has to be part of a runnerOrganisation - this get's checked on creation and update.
|
||||
* Every team has to be part of a runnerOrganization - this get's checked on creation and update.
|
||||
*/
|
||||
@IsNotEmpty()
|
||||
@ManyToOne(() => RunnerOrganisation, org => org.teams, { nullable: true })
|
||||
parentGroup?: RunnerOrganisation;
|
||||
@ManyToOne(() => RunnerOrganization, org => org.teams, { nullable: true })
|
||||
parentGroup?: RunnerOrganization;
|
||||
|
||||
/**
|
||||
* Turns this entity into it's response class.
|
||||
|
||||
Reference in New Issue
Block a user