@xuda.io/drive_module 1.1.1034 → 1.1.1036

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
@@ -2098,7 +2098,12 @@ const get_drive_doc = async function (
2098
2098
  const app_id_reference = await _common.get_project_app_id(app_id);
2099
2099
  const file_name = path.basename(file_path);
2100
2100
  const ext = path.extname(file_name).toLowerCase();
2101
- const statsObj = fs.statSync(file_path);
2101
+ const internal_file_path = path.join(
2102
+ _conf.studio_drive_path,
2103
+ app_id_reference,
2104
+ file_path
2105
+ );
2106
+ const statsObj = fs.statSync(internal_file_path);
2102
2107
  doc = {
2103
2108
  _id: file_path,
2104
2109
  docType: `studio_drive`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1034",
3
+ "version": "1.1.1036",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {