fix: need to set upload id on siaUpload

This commit is contained in:
Derrick Hammer 2024-03-09 14:45:31 -05:00
parent 4020b9f7c7
commit 887f51f88d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ func (r *RenterDefault) UploadObjectMultipart(ctx context.Context, params *Multi
}
uploadId = upload.UploadID
siaUpload.UploadID = uploadId
if tx := r.db.WithContext(ctx).Model(&siaUpload).Save(&siaUpload); tx.Error != nil {
return tx.Error
}