@xuda.io/drive_module 1.1.905 → 1.1.907

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 +6 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -420,13 +420,18 @@ exports.get_drive_files = async function (req) {
420
420
  const get_studio_files = async function () {
421
421
  if (search_string) {
422
422
  const app_id_reference = await _common.get_project_app_id(app_id);
423
- opt.selector.docType = "workspace_drive";
423
+ opt.selector.docType = "studio_drive";
424
424
  const ret = await db_module.find_app_couch_query(app_id, opt);
425
425
 
426
426
  const file_doc = await db_module.get_app_couch_doc(
427
427
  app_id,
428
428
  path.basename(req.path) || "/"
429
429
  );
430
+
431
+ return {
432
+ code: 1,
433
+ data: await get_drive_files(ret, file_doc, app_id_reference, null),
434
+ };
430
435
  }
431
436
 
432
437
  const app_id_master = await _common.get_project_app_id(app_id, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.905",
3
+ "version": "1.1.907",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {