@xuda.io/drive_module 1.1.1170 → 1.1.1172
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
|
@@ -72,7 +72,7 @@ exports.get_drive_files = async function (req) {
|
|
|
72
72
|
let tags_query = {};
|
|
73
73
|
const sort_by_obj = {
|
|
74
74
|
name: [type === 'file' ? 'originalname' : 'folder_name'],
|
|
75
|
-
date: ['date_modified'
|
|
75
|
+
date: ['date_modified'],
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
if (!sort_by_obj[sort_by]) {
|
|
@@ -2141,7 +2141,7 @@ const fix_date_modified = async function () {
|
|
|
2141
2141
|
|
|
2142
2142
|
for (doc of ret.docs) {
|
|
2143
2143
|
if (!doc.date_modified) {
|
|
2144
|
-
doc.date_modified =
|
|
2144
|
+
doc.date_modified = doc.date_created;
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
|