mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 09:15:34 +03: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:
@@ -1,5 +1,6 @@
|
|||||||
import { SharedLinkType } from '@app/infra/entities';
|
import { SharedLinkType } from '@app/infra/entities';
|
||||||
import { ApiProperty } from '@nestjs/swagger';
|
import { ApiProperty } from '@nestjs/swagger';
|
||||||
|
import { Type } from 'class-transformer';
|
||||||
import { IsBoolean, IsDate, IsEnum, IsOptional, IsString } from 'class-validator';
|
import { IsBoolean, IsDate, IsEnum, IsOptional, IsString } from 'class-validator';
|
||||||
import { ValidateUUID } from '../../immich/decorators/validate-uuid.decorator';
|
import { ValidateUUID } from '../../immich/decorators/validate-uuid.decorator';
|
||||||
|
|
||||||
@@ -19,6 +20,7 @@ export class SharedLinkCreateDto {
|
|||||||
description?: string;
|
description?: string;
|
||||||
|
|
||||||
@IsDate()
|
@IsDate()
|
||||||
|
@Type(() => Date)
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
expiresAt?: Date | null = null;
|
expiresAt?: Date | null = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user