@xuda.io/drive_module 1.1.899 → 1.1.901
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 +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -261,10 +261,10 @@ exports.get_drive_files = async function (req) {
|
|
|
261
261
|
|
|
262
262
|
const ret = await db_module.find_app_couch_query(app_id, opt);
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
const file_doc = await db_module.get_app_couch_doc(
|
|
265
|
+
app_id,
|
|
266
|
+
path.basename(req.path) || "/"
|
|
267
|
+
);
|
|
268
268
|
// // console.log(file_doc);
|
|
269
269
|
|
|
270
270
|
// let files = {
|
|
@@ -322,7 +322,7 @@ exports.get_drive_files = async function (req) {
|
|
|
322
322
|
// }
|
|
323
323
|
// files.size = formatBytes(files.sizeInBytes);
|
|
324
324
|
|
|
325
|
-
return { code: 1, data: await
|
|
325
|
+
return { code: 1, data: await get_drive_files(ret, file_doc) };
|
|
326
326
|
};
|
|
327
327
|
const get_user_files = async function () {
|
|
328
328
|
opt.selector.docType = "user_drive";
|