mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
tidying
This commit is contained in:
@@ -20,10 +20,6 @@ export class UploadAssetDataDto {
|
||||
@ValidateDate()
|
||||
fileModifiedAt!: Date;
|
||||
|
||||
@Optional()
|
||||
@IsString()
|
||||
duration?: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
filename!: string;
|
||||
@@ -105,7 +101,7 @@ export class StartUploadDto extends BaseUploadHeadersDto {
|
||||
isFavorite: dict.get('is-favorite')?.[0],
|
||||
iCloudId: dict.get('icloud-id')?.[0],
|
||||
});
|
||||
} catch (error: any) {
|
||||
} catch {
|
||||
throw new BadRequestException(`${ImmichHeader.AssetData} must be a valid structured dictionary`);
|
||||
}
|
||||
})
|
||||
@@ -156,4 +152,4 @@ export class GetUploadStatusDto extends BaseRufhHeadersDto {}
|
||||
|
||||
export class UploadOkDto {
|
||||
id!: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user