@xuda.io/drive_module 1.1.989 → 1.1.990

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.
Files changed (2) hide show
  1. package/index.js +6 -1
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.989",
3
+ "version": "1.1.990",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {