From d86e0e01057d731360a21ed3dc0213e583c3648d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 21 Jan 2024 01:06:14 -0500 Subject: [PATCH] fix: need to use where --- storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage.go b/storage/storage.go index 9cd6dac..468dec1 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -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