redundant check

This commit is contained in:
mertalev 2025-10-12 19:33:22 -04:00
parent 0d3cc89ba0
commit 87ca5e7b1d
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95

View file

@ -56,7 +56,7 @@ export class AssetUploadService extends BaseService {
this.logger.verboseFn(() => `Starting upload: ${JSON.stringify(dto)}`);
const { uploadComplete, assetData, uploadLength, contentLength, version } = dto;
const isComplete = uploadComplete !== false;
const isResumable = version && version >= 3 && uploadComplete !== undefined;
const isResumable = version && uploadComplete !== undefined;
const { backup } = await this.getConfig({ withCache: true });
const asset = await this.onStart(auth, dto);