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:
parent
294955db17
commit
7c76249e1f
@ -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 New Issue
Block a user