@xuda.io/drive_module 1.1.1167 → 1.1.1169
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 +4 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -224,6 +224,7 @@ exports.get_drive_files = async function (req) {
|
|
|
224
224
|
public: doc.public,
|
|
225
225
|
path: doc.file_path,
|
|
226
226
|
date_created: doc.date_created,
|
|
227
|
+
date_modified: doc.date_modified,
|
|
227
228
|
file_path: path.join(doc.file_path, doc.originalname),
|
|
228
229
|
tags: doc.tags || [],
|
|
229
230
|
});
|
|
@@ -1050,15 +1051,15 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1050
1051
|
try {
|
|
1051
1052
|
if (tags) tags_arr = tags.split(',');
|
|
1052
1053
|
} catch (error) {}
|
|
1053
|
-
|
|
1054
|
+
const d = Date.now();
|
|
1054
1055
|
var doc = {
|
|
1055
1056
|
docType: `${drive_type}_drive`,
|
|
1056
1057
|
stat: 3,
|
|
1057
1058
|
originalname,
|
|
1058
1059
|
uid,
|
|
1059
1060
|
type: 'file',
|
|
1060
|
-
date_created:
|
|
1061
|
-
date_modified:
|
|
1061
|
+
date_created: d,
|
|
1062
|
+
date_modified: d,
|
|
1062
1063
|
ip: headers['cf-connecting-ip'],
|
|
1063
1064
|
country: headers['cf-ipcountry'],
|
|
1064
1065
|
file_ext: ext,
|