mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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:
parent
597382a25f
commit
d4f3d9d6a5
16 changed files with 525 additions and 125 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue