fix(server): Share link with expire creation time error (#2934)
* fix(server): Share link with expire creation time error * better
This commit is contained in:
parent
294955db17
commit
7c76249e1f
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import { SharedLinkType } from '@app/infra/entities';
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsBoolean, IsDate, IsEnum, IsOptional, IsString } from 'class-validator';
|
||||
import { ValidateUUID } from '../../immich/decorators/validate-uuid.decorator';
|
||||
|
||||
|
@ -19,6 +20,7 @@ export class SharedLinkCreateDto {
|
|||
description?: string;
|
||||
|
||||
@IsDate()
|
||||
@Type(() => Date)
|
||||
@IsOptional()
|
||||
expiresAt?: Date | null = null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue