@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.
Files changed (2) hide show
  1. package/index.js +6 -3
  2. 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("xuda_drive", file_name);
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 = await upload_file_to_spaces(
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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.645",
3
+ "version": "1.1.647",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {