refactor(server): update album (#2562)

* refactor: update album

* fix: remove unnecessary decorator
This commit is contained in:
Jason Rasmussen
2023-05-25 15:37:19 -04:00
committed by GitHub
parent 1c293a2759
commit 4cc6e3b966
13 changed files with 272 additions and 225 deletions
@@ -0,0 +1,12 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';
import { ValidateUUID } from '../../../../../apps/immich/src/decorators/validate-uuid.decorator';
export class UpdateAlbumDto {
@IsOptional()
@ApiProperty()
albumName?: string;
@ValidateUUID({ optional: true })
albumThumbnailAssetId?: string;
}