fix: check for error

This commit is contained in:
Derrick Hammer 2024-02-18 00:04:28 -05:00
parent 8a32e69b06
commit 15750acec0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -245,6 +245,10 @@ func (t *TusHandler) UploadCompleted(ctx context.Context, uploadID string) error
result = t.db.WithContext(ctx).Model(&models.TusUpload{}).Where(find).Update("completed", true) result = t.db.WithContext(ctx).Model(&models.TusUpload{}).Where(find).Update("completed", true)
if result.Error != nil {
return result.Error
}
return nil return nil
} }
func (t *TusHandler) DeleteUpload(ctx context.Context, uploadID string) error { func (t *TusHandler) DeleteUpload(ctx context.Context, uploadID string) error {