@xuda.io/drive_module 1.1.468 → 1.1.470

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 +9 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -476,14 +476,14 @@ exports.delete_drive_files = async function (req) {
476
476
  data: "error - files_arr must be Array",
477
477
  };
478
478
  }
479
- if (drive_type === "workspace" && type === "file") {
480
- const app_id_reference = await _common.get_project_app_id(app_id);
481
- req.files_arr.forEach(function (file) {
482
- if (!file.path.includes(app_id_reference)) {
483
- throw new Error("error - file path unauthorized");
484
- }
485
- });
486
- }
479
+ // if (drive_type === "workspace" && type === "file") {
480
+ // const app_id_reference = await _common.get_project_app_id(app_id);
481
+ // req.files_arr.forEach(function (file) {
482
+ // if (!file.path.includes(app_id_reference)) {
483
+ // throw new Error("error - file path unauthorized");
484
+ // }
485
+ // });
486
+ // }
487
487
 
488
488
  let doc_ret;
489
489
  for await (const file of files_arr) {
@@ -2281,7 +2281,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
2281
2281
  docType: `${drive_type}_drive`,
2282
2282
  stat: 3,
2283
2283
 
2284
- file_path: dirPath,
2284
+ file_path: path.join("/", dirPath),
2285
2285
  },
2286
2286
  limit: 99999,
2287
2287
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.468",
3
+ "version": "1.1.470",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {