@xuda.io/drive_module 1.1.677 → 1.1.679

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1614,7 +1614,7 @@ exports.upload_drive_file = async function (req, job_id, headers, file_obj) {
1614
1614
  // }${file_name}`;
1615
1615
  // }
1616
1616
 
1617
- let file_url = get_file_url(drive_type, file_name);
1617
+ let file_url = get_file_url(drive_type, file_name, ref);
1618
1618
 
1619
1619
  await fs_module.unlink(tempPath);
1620
1620
 
@@ -1993,7 +1993,7 @@ exports.search_drive_files = async function (req) {
1993
1993
  type: doc.is_folder ? "directory" : "file", //type ||
1994
1994
  file_url: get_file_url(drive_type, doc.server_file_name),
1995
1995
  mime: doc.mime,
1996
- file_ext: doc.file_ext,
1996
+ file_ext: doc.file_ext.substr(1),
1997
1997
  };
1998
1998
  });
1999
1999
  };
@@ -2456,7 +2456,7 @@ exports.update_drive_file_tags = async function (req, job_id, headers) {
2456
2456
  }
2457
2457
  };
2458
2458
 
2459
- const get_file_url = function (drive_type, file_name) {
2459
+ const get_file_url = function (drive_type, file_name, ref) {
2460
2460
  let file_url = `https://${
2461
2461
  process.env.XUDA_HOSTNAME
2462
2462
  }/${drive_type}-drive/${ref}${
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.677",
3
+ "version": "1.1.679",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {