@xuda.io/drive_module 1.1.1180 → 1.1.1182
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -196,7 +196,7 @@ exports.get_drive_files = async function (req) {
|
|
|
196
196
|
const fetch_drive_files = async function (ret, file_doc, app_id_reference, uid, datasource_id, domain = process.env.XUDA_HOSTNAME, app_obj) {
|
|
197
197
|
let files = {
|
|
198
198
|
path: req.path || '/',
|
|
199
|
-
name: file_doc
|
|
199
|
+
name: file_doc?.data?.folder_name || '/',
|
|
200
200
|
file_path: req.path || '/',
|
|
201
201
|
sizeInBytes: 0,
|
|
202
202
|
children: [],
|
|
@@ -275,7 +275,7 @@ exports.get_drive_files = async function (req) {
|
|
|
275
275
|
const get_user_files = async function () {
|
|
276
276
|
opt.selector.docType = 'user_drive';
|
|
277
277
|
opt.selector.uid = uid;
|
|
278
|
-
const ret = await db_module.
|
|
278
|
+
const ret = await db_module.find_couch_query('xuda_drive', opt);
|
|
279
279
|
const file_doc = await db_module.get_couch_doc('xuda_drive', path.basename(req.path) || '/');
|
|
280
280
|
return {
|
|
281
281
|
code: 1,
|