@xuda.io/drive_module 1.1.989 → 1.1.991
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 +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1398,6 +1398,11 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1398
1398
|
const fs = require("fs").promises;
|
|
1399
1399
|
const stat = await fs.stat(tempPath);
|
|
1400
1400
|
|
|
1401
|
+
let tags_arr = [];
|
|
1402
|
+
try {
|
|
1403
|
+
tags_arr.split(",");
|
|
1404
|
+
} catch (error) {}
|
|
1405
|
+
|
|
1401
1406
|
var doc = {
|
|
1402
1407
|
docType: `${drive_type}_drive`,
|
|
1403
1408
|
stat: 3,
|
|
@@ -1420,7 +1425,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
|
|
|
1420
1425
|
file_path: req.path || "/",
|
|
1421
1426
|
size: stat.isFile() ? stat.size : 0,
|
|
1422
1427
|
public: make_public,
|
|
1423
|
-
tags,
|
|
1428
|
+
tags: tags_arr,
|
|
1424
1429
|
};
|
|
1425
1430
|
doc = { ...doc, ...(await get_file_info(tempPath)) };
|
|
1426
1431
|
|