mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
add controller tests, move validation testing from e2e
revert unnecessary change update mocks add structured-headers to e2e deps
This commit is contained in:
@@ -114,7 +114,7 @@ export class StartUploadDto extends BaseUploadHeadersDto {
|
||||
@Expose({ name: UploadHeader.ReprDigest })
|
||||
@Transform(({ value }) => {
|
||||
if (!value) {
|
||||
return null;
|
||||
throw new BadRequestException(`Missing ${UploadHeader.ReprDigest} header`);
|
||||
}
|
||||
|
||||
const checksum = parseDictionary(value).get('sha')?.[0];
|
||||
|
||||
Reference in New Issue
Block a user