Added missing id property

This commit is contained in:
Nicolai Ort 2021-01-19 18:00:45 +01:00
parent d743f7ee12
commit 6b4b16c13b
1 changed files with 8 additions and 1 deletions

View File

@ -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.
*/