mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
better abort check
This commit is contained in:
parent
325f30815c
commit
0be3b06a2a
1 changed files with 2 additions and 1 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue