parent
17244b0006
commit
e96637219f
@ -1,4 +1,4 @@
|
|||||||
import { IsInt, IsObject } from 'class-validator';
|
import { IsInt, IsPositive } from 'class-validator';
|
||||||
import { getConnectionManager } from 'typeorm';
|
import { getConnectionManager } from 'typeorm';
|
||||||
import { RunnerGroupNotFoundError } from '../../../errors/RunnerGroupErrors';
|
import { RunnerGroupNotFoundError } from '../../../errors/RunnerGroupErrors';
|
||||||
import { RunnerOrganisationWrongTypeError } from '../../../errors/RunnerOrganisationErrors';
|
import { RunnerOrganisationWrongTypeError } from '../../../errors/RunnerOrganisationErrors';
|
||||||
@ -20,11 +20,11 @@ export class UpdateRunner extends CreateParticipant {
|
|||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The updated runner's new team/org.
|
* The updated runner's group's id.
|
||||||
* Just has to contain the group's id -everything else won't be checked or changed.
|
|
||||||
*/
|
*/
|
||||||
@IsObject()
|
@IsInt()
|
||||||
group: RunnerGroup;
|
@IsPositive()
|
||||||
|
group: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates a provided Runner entity based on this.
|
* Updates a provided Runner entity based on this.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user