mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
redundant check
This commit is contained in:
@@ -56,7 +56,7 @@ export class AssetUploadService extends BaseService {
|
|||||||
this.logger.verboseFn(() => `Starting upload: ${JSON.stringify(dto)}`);
|
this.logger.verboseFn(() => `Starting upload: ${JSON.stringify(dto)}`);
|
||||||
const { uploadComplete, assetData, uploadLength, contentLength, version } = dto;
|
const { uploadComplete, assetData, uploadLength, contentLength, version } = dto;
|
||||||
const isComplete = uploadComplete !== false;
|
const isComplete = uploadComplete !== false;
|
||||||
const isResumable = version && version >= 3 && uploadComplete !== undefined;
|
const isResumable = version && uploadComplete !== undefined;
|
||||||
const { backup } = await this.getConfig({ withCache: true });
|
const { backup } = await this.getConfig({ withCache: true });
|
||||||
|
|
||||||
const asset = await this.onStart(auth, dto);
|
const asset = await this.onStart(auth, dto);
|
||||||
|
|||||||
Reference in New Issue
Block a user