Skip to content

Commit

Permalink
Add aditional report category enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignas-rgb committed Apr 3, 2024
1 parent aac120e commit ee661b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/dto/report-category.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export enum ReportCategory {
trash = 'trash',
forest = 'forest',
beetle = 'beetle',
}
8 changes: 7 additions & 1 deletion src/report/dto/create-report.dto.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit ee661b9

Please sign in to comment.