@@ -21,7 +21,7 @@ export class CreateRunnerOrganisation extends CreateRunnerGroup {
|
||||
*/
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
registrtionEnabled?: boolean = false;
|
||||
registrationEnabled?: boolean = false;
|
||||
|
||||
/**
|
||||
* Creates a new RunnerOrganisation entity from this.
|
||||
@@ -34,7 +34,7 @@ export class CreateRunnerOrganisation extends CreateRunnerGroup {
|
||||
newRunnerOrganisation.address = this.address;
|
||||
Address.validate(newRunnerOrganisation.address);
|
||||
|
||||
if (this.registrtionEnabled) {
|
||||
if (this.registrationEnabled) {
|
||||
newRunnerOrganisation.key = uuid.v4().toUpperCase();
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ export class UpdateRunnerOrganisation extends CreateRunnerGroup {
|
||||
*/
|
||||
@IsNotEmpty()
|
||||
@IsBoolean()
|
||||
registrtionEnabled: boolean;
|
||||
registrationEnabled: boolean;
|
||||
|
||||
/**
|
||||
* Updates a provided RunnerOrganisation entity based on this.
|
||||
@@ -41,7 +41,7 @@ export class UpdateRunnerOrganisation extends CreateRunnerGroup {
|
||||
else { organisation.address = this.address; }
|
||||
Address.validate(organisation.address);
|
||||
|
||||
if (this.registrtionEnabled) {
|
||||
if (this.registrationEnabled) {
|
||||
organisation.key = uuid.v4().toUpperCase();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user