fix: need to set upload id on siaUpload
This commit is contained in:
parent
4020b9f7c7
commit
887f51f88d
|
@ -211,6 +211,7 @@ func (r *RenterDefault) UploadObjectMultipart(ctx context.Context, params *Multi
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadId = upload.UploadID
|
uploadId = upload.UploadID
|
||||||
|
siaUpload.UploadID = uploadId
|
||||||
if tx := r.db.WithContext(ctx).Model(&siaUpload).Save(&siaUpload); tx.Error != nil {
|
if tx := r.db.WithContext(ctx).Model(&siaUpload).Save(&siaUpload); tx.Error != nil {
|
||||||
return tx.Error
|
return tx.Error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue