@xuda.io/drive_module 1.1.719 → 1.1.721

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 +7 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -309,7 +309,13 @@ exports.get_drive_files = async function (req) {
309
309
  continue;
310
310
  }
311
311
 
312
- let ret = await db_module.get_app_couch_doc(app_id_master, val.name);
312
+ let ret = await db_module.get_app_couch_doc(
313
+ app_id_master,
314
+ path.join(
315
+ get_studio_path(val.path, app_id_master, val.relativePath),
316
+ val.name
317
+ )
318
+ );
313
319
 
314
320
  if (ret.code > -1) {
315
321
  if (val.type === "file") {
@@ -329,14 +335,6 @@ exports.get_drive_files = async function (req) {
329
335
  );
330
336
  }
331
337
 
332
- // val.path = get_studio_path(
333
- // val.path,
334
- // app_id_master,
335
- // val.relativePath
336
- // ); //val.path
337
- // .replaceAll(path.join(_conf.studio_drive_path, app_id_master), "")
338
- // .replaceAll(val.relativePath, "");
339
-
340
338
  delete ret.data._id;
341
339
  delete ret.data._rev;
342
340
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.719",
3
+ "version": "1.1.721",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {