Skip to content

Commit

Permalink
fix(server): change giftcode dto string length (#1397)
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 authored Jul 13, 2023
1 parent 0c04bd8 commit 7b792b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/account/dto/use-gift-code.dto.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty, Length } from 'class-validator'
import { IsNotEmpty, Length, MaxLength } from 'class-validator'

export class UseGiftCodeDto {
@ApiProperty({
description: 'gift code',
type: 'string',
})
@IsNotEmpty()
@Length(16, 16)
@Length(8, 64)
code: string
}

0 comments on commit 7b792b6

Please sign in to comment.