Added missing id property
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| import { IsEmail, IsNotEmpty, IsObject, IsOptional, IsPhoneNumber, IsString } from 'class-validator'; | ||||
| import { IsEmail, IsInt, IsNotEmpty, IsObject, IsOptional, IsPhoneNumber, IsString } from 'class-validator'; | ||||
| import { getConnectionManager } from 'typeorm'; | ||||
| import { config } from '../../../config'; | ||||
| import { RunnerGroupNotFoundError } from '../../../errors/RunnerGroupErrors'; | ||||
| @@ -11,6 +11,13 @@ import { RunnerGroup } from '../../entities/RunnerGroup'; | ||||
|  * This class is used to update a GroupContact entity (via put request). | ||||
|  */ | ||||
| export class UpdateGroupContact { | ||||
|     /** | ||||
|      * The updated contact's id. | ||||
|      * This shouldn't have changed but it is here in case anyone ever wants to enable id changes (whyever they would want to). | ||||
|      */ | ||||
|     @IsInt() | ||||
|     id: number; | ||||
|  | ||||
|     /** | ||||
|      * The updated contact's first name. | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user