@xuda.io/drive_module 1.1.814 → 1.1.816

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 +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1582,8 +1582,9 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1582
1582
  app_id,
1583
1583
  uid,
1584
1584
  drive_type,
1585
- file_name: originalname,
1586
- file_path: doc.file_path,
1585
+ // file_name: originalname,
1586
+ // file_path: doc.file_path,
1587
+ file_path: path.join(doc.file_path, originalname),
1587
1588
  };
1588
1589
  const check_existing_file_ret = await module.exports.check_drive_file(
1589
1590
  check_req
@@ -1768,7 +1769,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1768
1769
  }
1769
1770
  };
1770
1771
  exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1771
- const { drive_type, app_id, uid, file_name, file_path } = req;
1772
+ const { drive_type, app_id, uid, file_path } = req;
1772
1773
 
1773
1774
  var master_app_id;
1774
1775
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.814",
3
+ "version": "1.1.816",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {