@xuda.io/drive_module 1.1.1043 → 1.1.1044

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -215,7 +215,9 @@ exports.get_drive_files = async function (req) {
215
215
  size: formatBytes(doc.size),
216
216
  extension: doc?.file_ext?.substr(1),
217
217
  type: doc.type,
218
- access_link: `https://${process.env.XUDA_HOSTNAME}/${drive_type}-drive/${app_id}/${doc._id}`,
218
+ access_link: `https://${
219
+ process.env.XUDA_HOSTNAME
220
+ }/${drive_type}-drive/${datasource_id || app_id}/${doc._id}`,
219
221
  is_archive: doc.is_archive,
220
222
  public: doc.public,
221
223
  path: doc.file_path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1043",
3
+ "version": "1.1.1044",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {