fix: need to use where

This commit is contained in:
Derrick Hammer 2024-01-21 01:06:14 -05:00
parent e0de290cff
commit d86e0e0105
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ func (s *StorageServiceImpl) TusUploadProgress(uploadID string) error {
return nil
}
func (s *StorageServiceImpl) DeleteTusUpload(uploadID string) error {
result := s.portal.Database().Delete(&models.TusUpload{UploadID: uploadID})
result := s.portal.Database().Where(&models.TusUpload{UploadID: uploadID}).Delete(&models.TusUpload{})
if result.Error != nil {
return result.Error