@xuda.io/drive_module 1.1.526 → 1.1.528
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -286,6 +286,7 @@ exports.get_drive_files = async function (req) {
|
|
|
286
286
|
if (ret.code > -1) {
|
|
287
287
|
if (val.type === "file") {
|
|
288
288
|
val.cy_data = ret.data;
|
|
289
|
+
|
|
289
290
|
val.access_link = await rep(
|
|
290
291
|
val.path, // + "?r=" + ret.data._rev,
|
|
291
292
|
drive_type
|
|
@@ -320,7 +321,8 @@ exports.get_drive_files = async function (req) {
|
|
|
320
321
|
// values_to_delete.push(i);
|
|
321
322
|
// }
|
|
322
323
|
}
|
|
323
|
-
|
|
324
|
+
val.date_created = new Date(val.stat.birthtime).valueOf();
|
|
325
|
+
delete val.stat;
|
|
324
326
|
// if (val.children) {
|
|
325
327
|
// await drill(val.children);
|
|
326
328
|
// }
|