@xuda.io/drive_module 1.1.590 → 1.1.591

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 +5 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -727,7 +727,11 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
727
727
  return {
728
728
  code: 760,
729
729
  data: {
730
- server_file_name: `https://${process.env.XUDA_HOSTNAME}/${drive_type}-drive${file_name}`,
730
+ server_file_name: `https://${
731
+ process.env.XUDA_HOSTNAME
732
+ }/${drive_type}-drive${
733
+ drive_type === "studio" ? target_dir : file_name
734
+ }`,
731
735
  filename: file_obj.originalname,
732
736
  },
733
737
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.590",
3
+ "version": "1.1.591",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {