@xuda.io/drive_module 1.1.458 → 1.1.460

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 +8 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -509,6 +509,12 @@ exports.delete_drive_files = async function (req) {
509
509
  case "workspace": {
510
510
  const app_id_reference = await _common.get_project_app_id(app_id);
511
511
 
512
+ const docs = await get_folder_docs(
513
+ path.basename(file.path),
514
+ drive_type,
515
+ app_id_reference
516
+ );
517
+
512
518
  doc_ret = await db_module.get_app_couch_doc(
513
519
  app_id_reference,
514
520
  path.basename(file.path)
@@ -2262,7 +2268,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
2262
2268
  selector: {
2263
2269
  docType: `${drive_type}_drive`,
2264
2270
  stat: 3,
2265
- type: "file",
2271
+
2266
2272
  file_path: dirPath,
2267
2273
  },
2268
2274
  limit: 99999,
@@ -2273,7 +2279,7 @@ const get_folder_docs = async function (dir, drive_type, app_id) {
2273
2279
  : await db_module.find_app_couch_query(app_id, opt);
2274
2280
  for await (let doc of ret.docs) {
2275
2281
  if (doc.type === "directory") {
2276
- await get_docs(doc.path);
2282
+ await get_docs(path.join("/", doc._id));
2277
2283
  } else {
2278
2284
  docs.push(doc);
2279
2285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.458",
3
+ "version": "1.1.460",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {