@xuda.io/drive_module 1.1.588 → 1.1.590

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 +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -625,11 +625,12 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
625
625
 
626
626
  const tempPath = file_obj.path;
627
627
  if (drive_type === "studio") {
628
+ const target_dir = path.join(_conf[`studio_drive_path`], target_file);
628
629
  try {
629
- fse.unlinkSync(target_file);
630
+ fse.unlinkSync(target_dir);
630
631
  } catch (error) {}
631
632
 
632
- fse.copyFileSync(tempPath, target_file);
633
+ fse.copyFileSync(tempPath, target_dir);
633
634
  }
634
635
 
635
636
  let doc_ret;
@@ -639,7 +640,7 @@ exports.update_drive_file = async function (req, job_id, headers, file_obj) {
639
640
  const app_id_reference = await _common.get_project_app_id(app_id);
640
641
  doc_ret = await db_module.get_app_couch_doc(
641
642
  app_id_reference,
642
- file_path
643
+ target_file
643
644
  );
644
645
  break;
645
646
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.588",
3
+ "version": "1.1.590",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {