better abort check

This commit is contained in:
mertalev 2025-10-09 17:36:52 -04:00
parent 325f30815c
commit 0be3b06a2a
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95

View file

@ -46,8 +46,9 @@ export class AssetUploadService extends BaseService {
} }
if (abortTime > entry.startTime) { if (abortTime > entry.startTime) {
entry.req.destroy(); entry.req.destroy();
this.activeRequests.delete(assetId);
} }
return this.activeRequests.delete(assetId); return true;
} }
async startUpload(auth: AuthDto, req: Readable, res: Response, dto: StartUploadDto): Promise<void> { async startUpload(auth: AuthDto, req: Readable, res: Response, dto: StartUploadDto): Promise<void> {