mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 14:41:18 +00:00
fix(backend): Complete completed upload should clear pending
This commit is contained in:
@@ -137,6 +137,7 @@ func (s *Service) CompleteUpload(ctx context.Context, db bun.IDB, uploadID strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
if upload.TargetNode.Status == virtualfs.NodeStatusReady && upload.Status == StatusCompleted {
|
if upload.TargetNode.Status == virtualfs.NodeStatusReady && upload.Status == StatusCompleted {
|
||||||
|
s.pendingUploads.Delete(uploadID)
|
||||||
return upload, nil
|
return upload, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user