Skip to content

Commit

Permalink
refactor: Add validation to UpdateUserFCMTokenDTO for FCMToken field
Browse files Browse the repository at this point in the history
  • Loading branch information
suk-6 committed Jul 19, 2024
1 parent 246bb25 commit bc178d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/user/dto/update-user-fcm.dto.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Prisma } from '@prisma/client';
import { IsString } from 'class-validator';

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

export class UpdateUserFCMTokenDTO implements Prisma.UserUpdateInput {
@ApiProperty({
required: true,
})
@IsString()
FCMToken: string;
}

0 comments on commit bc178d4

Please sign in to comment.