fix(server): Share link with expire creation time error (#2934)

* fix(server): Share link with expire creation time error

* better
pull/2940/head
Alex 2023-06-24 10:24:55 +07:00 committed by GitHub
parent 294955db17
commit 7c76249e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;