1 parent
0d5a2109d5
commit
a35e6d0a9f
3 files changed
+129
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { IsString } from 'class-validator';
|
||||
import { RunnerOrganisation } from './RunnerOrganisation';
|
||||
|
||||
export class CreateRunnerOrganisation {
|
||||
@IsString()
|
||||
name: string;
|
||||
|
||||
public async toRunnerOrganisation(): Promise<RunnerOrganisation> {
|
||||
let newRunnerOrganisation: RunnerOrganisation = new RunnerOrganisation();
|
||||
|
||||
newRunnerOrganisation.name = this.name;
|
||||
|
||||
return newRunnerOrganisation;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user