@xuda.io/drive_module 1.1.642 → 1.1.644

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 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -627,13 +627,17 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
627
627
  app_id,
628
628
  uid,
629
629
  drive_type,
630
- file_name: originalname,
631
- file_path: file_path,
630
+ file_name,
631
+ file_path,
632
632
  };
633
633
  const check_existing_file_ret = await module.exports.check_drive_file(
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.642",
3
+ "version": "1.1.644",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {