@xuda.io/drive_module 1.1.643 → 1.1.645

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 +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -634,6 +634,10 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
634
634
  check_req
635
635
  );
636
636
 
637
+ if (check_existing_file_ret.code > -1) {
638
+ return { code: -5, data: "file not exit" };
639
+ }
640
+
637
641
  var target_file = path.join(file_path, file_name);
638
642
  const master_id = await _common.get_project_app_id(app_id, true);
639
643
  const tempPath = file_obj.path;
@@ -665,7 +669,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
665
669
  const app_id_reference = await _common.get_project_app_id(app_id);
666
670
  doc_ret = await db_module.get_app_couch_doc(
667
671
  app_id_reference,
668
- file_name
672
+ check_existing_file_ret.duplicates[0]._id
669
673
  );
670
674
  break;
671
675
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.643",
3
+ "version": "1.1.645",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {