mirror of
https://github.com/immich-app/immich.git
synced 2026-02-10 19:07:55 +03:00
better abort check
This commit is contained in:
@@ -46,8 +46,9 @@ export class AssetUploadService extends BaseService {
|
||||
}
|
||||
if (abortTime > entry.startTime) {
|
||||
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> {
|
||||
|
||||
Reference in New Issue
Block a user