From ee661b9bc46f2b177dee023fd594f1080f62b772 Mon Sep 17 00:00:00 2001 From: Ignas-rgb <61393113+Ignas-rgb@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:53:53 +0300 Subject: [PATCH] Add aditional report category enum --- src/common/dto/report-category.ts | 1 + src/report/dto/create-report.dto.ts | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/dto/report-category.ts b/src/common/dto/report-category.ts index a4084ea..9533429 100644 --- a/src/common/dto/report-category.ts +++ b/src/common/dto/report-category.ts @@ -1,4 +1,5 @@ export enum ReportCategory { trash = 'trash', forest = 'forest', + beetle = 'beetle', } diff --git a/src/report/dto/create-report.dto.ts b/src/report/dto/create-report.dto.ts index c77fd1e..cc9249c 100644 --- a/src/report/dto/create-report.dto.ts +++ b/src/report/dto/create-report.dto.ts @@ -1,5 +1,11 @@ import { ApiProperty } from '@nestjs/swagger'; -import { IsEmail, IsEnum, IsLatitude, IsLongitude, IsNotEmpty } from 'class-validator'; +import { + IsEmail, + IsEnum, + IsLatitude, + IsLongitude, + IsNotEmpty, +} from 'class-validator'; import { ReportCategory } from '../../common/dto/report-category'; export class CreateReportDto {