@xuda.io/drive_module 1.1.645 → 1.1.647
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 +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -674,7 +674,10 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
674
674
|
break;
|
|
675
675
|
}
|
|
676
676
|
case "user":
|
|
677
|
-
doc_ret = await db_module.get_couch_doc(
|
|
677
|
+
doc_ret = await db_module.get_couch_doc(
|
|
678
|
+
"xuda_drive",
|
|
679
|
+
check_existing_file_ret.duplicates[0]._id
|
|
680
|
+
);
|
|
678
681
|
break;
|
|
679
682
|
|
|
680
683
|
default:
|
|
@@ -710,12 +713,12 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
710
713
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
711
714
|
const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
712
715
|
|
|
713
|
-
doc.bucket
|
|
716
|
+
doc.bucket {[`${process.env.XUDA_HOSTNAME}`]: await upload_file_to_spaces(
|
|
714
717
|
tempPath,
|
|
715
718
|
app_id_master,
|
|
716
719
|
drive_type,
|
|
717
720
|
file_name
|
|
718
|
-
)
|
|
721
|
+
)}
|
|
719
722
|
|
|
720
723
|
save_ret = await db_module.save_app_couch_doc(app_id_reference, doc);
|
|
721
724
|
misc_module.rsync_drive_resources_to_remote_servers(
|