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:
@@ -43,7 +43,7 @@ export class AssetUploadService extends BaseService {
|
||||
throw new BadRequestException(`${assetData.filename} is an unsupported file type`);
|
||||
}
|
||||
|
||||
this.validateQuota(auth, uploadLength ?? contentLength);
|
||||
this.validateQuota(auth, uploadLength);
|
||||
|
||||
try {
|
||||
await this.assetRepository.createWithMetadata(
|
||||
@@ -94,7 +94,7 @@ export class AssetUploadService extends BaseService {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isComplete && uploadLength && uploadLength !== contentLength) {
|
||||
if (isComplete && uploadLength !== contentLength) {
|
||||
return this.sendInconsistentLengthProblem(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user