@xuda.io/drive_module 1.1.988 → 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 +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -27,6 +27,7 @@ const unzipper = require("unzipper");
27
27
  const fs = require("fs");
28
28
  const tesseract = require("node-tesseract-ocr");
29
29
  const countryLanguage = require("country-language");
30
+ const url = require("url");
30
31
  ////////////////////////////////////////////
31
32
 
32
33
  [
@@ -1397,6 +1398,11 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1397
1398
  const fs = require("fs").promises;
1398
1399
  const stat = await fs.stat(tempPath);
1399
1400
 
1401
+ let tags_arr = [];
1402
+ try {
1403
+ tags_arr.split();
1404
+ } catch (error) {}
1405
+
1400
1406
  var doc = {
1401
1407
  docType: `${drive_type}_drive`,
1402
1408
  stat: 3,
@@ -1419,7 +1425,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1419
1425
  file_path: req.path || "/",
1420
1426
  size: stat.isFile() ? stat.size : 0,
1421
1427
  public: make_public,
1422
- tags,
1428
+ tags: tags_arr,
1423
1429
  };
1424
1430
  doc = { ...doc, ...(await get_file_info(tempPath)) };
1425
1431
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.988",
3
+ "version": "1.1.990",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {