mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 18:01:17 +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 {
|
||||
s.pendingUploads.Delete(uploadID)
|
||||
return upload, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user