@xuda.io/drive_module 1.1.598 → 1.1.600

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -621,8 +621,8 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
621
621
  return { code: -4, data: "file data missing" };
622
622
  }
623
623
 
624
- var target_file = path.join(req.file_path, req.file_name);
625
- const master_id = await _common.get_project_app_id(req.app_id, true);
624
+ var target_file = path.join(file_path, file_name);
625
+ const master_id = await _common.get_project_app_id(app_id, true);
626
626
  const tempPath = file_obj.path;
627
627
  if (drive_type === "studio") {
628
628
  const target_dir = path.join(
@@ -1569,7 +1569,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1569
1569
  }
1570
1570
  };
1571
1571
  exports.check_drive_file = async function (req, job_id, headers, file_obj) {
1572
- const { drive_type, app_id, uid, originalname } = req;
1572
+ const { drive_type, app_id, uid, originalname, file_path } = req;
1573
1573
  var file_name, ref;
1574
1574
 
1575
1575
  switch (drive_type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.598",
3
+ "version": "1.1.600",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {