@xuda.io/drive_module 1.1.599 → 1.1.601

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
@@ -1569,16 +1569,16 @@ 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) {
1576
1576
  case "studio": {
1577
1577
  ref = await _common.get_project_app_id(req.app_id, true);
1578
1578
  const target_dir = path.join(_conf[`studio_drive_path`], ref);
1579
- file_name = path.join(req.path.replace(target_dir, ""), originalname);
1579
+ file_name = path.join(file_path.replace(target_dir, ""), originalname);
1580
1580
  target_file = path.join(
1581
- req.path !== "/" ? req.path : target_dir,
1581
+ file_path !== "/" ? file_path : target_dir,
1582
1582
  originalname
1583
1583
  );
1584
1584
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.599",
3
+ "version": "1.1.601",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {