@xuda.io/drive_module 1.1.904 → 1.1.906
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.
- package/index.js +16 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -418,6 +418,22 @@ exports.get_drive_files = async function (req) {
|
|
|
418
418
|
};
|
|
419
419
|
};
|
|
420
420
|
const get_studio_files = async function () {
|
|
421
|
+
if (search_string) {
|
|
422
|
+
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
423
|
+
opt.selector.docType = "workspace_drive";
|
|
424
|
+
const ret = await db_module.find_app_couch_query(app_id, opt);
|
|
425
|
+
|
|
426
|
+
const file_doc = await db_module.get_app_couch_doc(
|
|
427
|
+
app_id,
|
|
428
|
+
path.basename(req.path) || "/"
|
|
429
|
+
);
|
|
430
|
+
|
|
431
|
+
return {
|
|
432
|
+
code: 1,
|
|
433
|
+
data: await get_drive_files(ret, file_doc, app_id_reference, null),
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
|
|
421
437
|
const app_id_master = await _common.get_project_app_id(app_id, true);
|
|
422
438
|
|
|
423
439
|
var directoryPath =
|