Skip to content

Commit c52f0c7

Browse files
authored
Merge pull request #176 from import-ai/fix/share
fix(share): fix update-share-info-req
2 parents 17f961a + 7bcaf5d commit c52f0c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shares/dto/update-share-info-req.dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
IsEnum,
55
IsOptional,
66
IsString,
7-
IsDate,
7+
IsDateString,
88
IsInt,
99
} from 'class-validator';
1010
import { ShareType } from '../entities/share.entity';
@@ -36,7 +36,7 @@ export class UpdateShareInfoReqDto {
3636
shareType?: ShareType;
3737

3838
@IsOptional()
39-
@IsDate()
39+
@IsDateString()
4040
@Expose({ name: 'expires_at' })
4141
expiresAt?: Date | null;
4242

0 commit comments

Comments
 (0)