@xuda.io/drive_module 1.1.686 → 1.1.688
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
|
@@ -117,11 +117,11 @@ exports.get_drive_files = async function (req) {
|
|
|
117
117
|
|
|
118
118
|
const file_doc = await db_module.get_app_couch_doc(
|
|
119
119
|
app_id,
|
|
120
|
-
path.basename(req.path)
|
|
120
|
+
path.basename(req.path) || "/"
|
|
121
121
|
);
|
|
122
122
|
// console.log(file_doc);
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
let files = {
|
|
125
125
|
path: req.path || "/",
|
|
126
126
|
name: file_doc.data.folder_name || "/",
|
|
127
127
|
// size: 0,
|
|
@@ -194,11 +194,11 @@ exports.get_drive_files = async function (req) {
|
|
|
194
194
|
const ret = await db_module.find_couch_query("xuda_drive", opt);
|
|
195
195
|
const file_doc = await db_module.get_couch_doc(
|
|
196
196
|
"xuda_drive",
|
|
197
|
-
path.basename(req.path)
|
|
197
|
+
path.basename(req.path) || "/"
|
|
198
198
|
);
|
|
199
199
|
// console.log(file_doc);
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
let files = {
|
|
202
202
|
path: req.path || "/",
|
|
203
203
|
name: file_doc.data.folder_name || "/",
|
|
204
204
|
sizeInBytes: 0,
|
|
@@ -1996,7 +1996,7 @@ exports.search_drive_files = async function (req) {
|
|
|
1996
1996
|
mime: doc.mime,
|
|
1997
1997
|
file_ext: doc.file_ext.substr(1),
|
|
1998
1998
|
size: doc.size,
|
|
1999
|
-
|
|
1999
|
+
date: doc.date_created,
|
|
2000
2000
|
};
|
|
2001
2001
|
});
|
|
2002
2002
|
};
|