1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

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:
Alex 2023-06-24 10:24:55 -05:00 committed by GitHub
parent 294955db17
commit 7c76249e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;