fix: need to use where
This commit is contained in:
parent
e0de290cff
commit
d86e0e0105
|
@ -419,7 +419,7 @@ func (s *StorageServiceImpl) TusUploadProgress(uploadID string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (s *StorageServiceImpl) DeleteTusUpload(uploadID string) error {
|
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 {
|
if result.Error != nil {
|
||||||
return result.Error
|
return result.Error
|
||||||
|
|
Loading…
Reference in New Issue