@xuda.io/drive_module 1.1.1002 → 1.1.1004

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
@@ -815,7 +815,12 @@ exports.delete_drive_files = async function (req, job_id, headers) {
815
815
  case "studio": {
816
816
  debugger;
817
817
  const app_id_reference = await _common.get_project_app_id(app_id);
818
- const ret = rimraf.sync(file.file_path); // delete the file
818
+ const target_dir = path.join(
819
+ _conf[`studio_drive_path`],
820
+ app_id_reference,
821
+ ile.file_path
822
+ );
823
+ const ret = rimraf.sync(target_dir); // delete the file
819
824
 
820
825
  if (doc.type === "file") {
821
826
  doc.ts = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1002",
3
+ "version": "1.1.1004",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {