@xuda.io/drive_module 1.1.1384 → 1.1.1385
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.mjs +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1103,6 +1103,7 @@ export const upload_drive_file = async (req, job_id, headers, file_obj) => {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
} catch (error) {}
|
|
1106
|
+
|
|
1106
1107
|
const ts = Date.now();
|
|
1107
1108
|
let doc = {
|
|
1108
1109
|
docType: `${drive_type}_drive`,
|
|
@@ -1115,7 +1116,7 @@ export const upload_drive_file = async (req, job_id, headers, file_obj) => {
|
|
|
1115
1116
|
ip: headers['cf-connecting-ip'],
|
|
1116
1117
|
country: headers['cf-ipcountry'],
|
|
1117
1118
|
file_ext: ext,
|
|
1118
|
-
is_archive:
|
|
1119
|
+
is_archive: validation_ret.valid && validation_ret.category === 'archive' ? true : false,
|
|
1119
1120
|
drive_type,
|
|
1120
1121
|
mime: file_obj.mimetype,
|
|
1121
1122
|
ocr_stat: ['image', 'application', 'text'].includes(file_obj.mimetype.split('/')[0]) ? 1 : 0,
|