fix: need to borrow the check from finishUploadIfComplete and invert it

This commit is contained in:
Derrick Hammer 2024-01-22 18:02:15 -05:00
parent 941ce27293
commit 3fcb897e7a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ func (s *StorageServiceImpl) tusWorker() {
}
case info := <-s.tus.CompleteUploads:
if !info.Upload.IsFinal {
if !(!info.Upload.SizeIsDeferred && info.Upload.Offset == info.Upload.Size) {
continue
}
err := s.TusUploadCompleted(info.Upload.ID)