Skip to content

Commit

Permalink
feat: Add status field to PlanResponseDTO
Browse files Browse the repository at this point in the history
  • Loading branch information
PleBea committed Jul 15, 2024
1 parent 8a6bd89 commit 1b36d99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/plan/dto/plan-response.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Place, Plan, User } from '@prisma/client';
import { $Enums, Place, Plan, User } from '@prisma/client';

import { ApiProperty } from '@nestjs/swagger';

Expand Down Expand Up @@ -29,6 +29,11 @@ export class PlanResponseDTO implements Partial<Plan> {
@ApiProperty()
isAlarmAvailable: boolean;

@ApiProperty({
enum: $Enums.PlanStatus,
})
status?: $Enums.PlanStatus;

@ApiProperty()
createdAt: Date;
}

0 comments on commit 1b36d99

Please sign in to comment.