fix: check for error
This commit is contained in:
parent
8a32e69b06
commit
15750acec0
|
@ -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)
|
||||
|
||||
if result.Error != nil {
|
||||
return result.Error
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
func (t *TusHandler) DeleteUpload(ctx context.Context, uploadID string) error {
|
||||
|
|
Loading…
Reference in New Issue