@xuda.io/drive_module 1.1.647 → 1.1.648
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -728,12 +728,12 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
728
728
|
break;
|
|
729
729
|
}
|
|
730
730
|
case "user": {
|
|
731
|
-
doc.bucket = await upload_file_to_spaces(
|
|
731
|
+
doc.bucket ={[`${process.env.XUDA_HOSTNAME}`]: await upload_file_to_spaces(
|
|
732
732
|
tempPath,
|
|
733
733
|
uid,
|
|
734
734
|
drive_type,
|
|
735
735
|
file_name
|
|
736
|
-
)
|
|
736
|
+
)}
|
|
737
737
|
save_ret = await db_module.save_couch_doc("xuda_drive", doc);
|
|
738
738
|
misc_module.rsync_drive_resources_to_remote_servers("user", doc.uid);
|
|
739
739
|
break;
|