@xuda.io/drive_module 1.1.1426 → 1.1.1428

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.mjs +1 -13
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -630,22 +630,14 @@ export const delete_drive_files = async (req, job_id, headers) => {
630
630
  case 'studio': {
631
631
  const app_id_reference = await _common.get_project_app_id(app_id);
632
632
  const target_dir = path.join(_conf[`studio_drive_path`], app_id_reference, file.file_path);
633
- console.log('target_dir', target_dir);
634
- rimraf.sync(target_dir);
635
633
 
636
- if (doc.type === 'file') {
637
- doc.ts = Date.now();
638
- doc.stat = 4;
639
- save_ret = await db_module.save_app_couch_doc(app_id_reference, doc);
640
- }
634
+ rimraf.sync(target_dir);
641
635
 
642
636
  misc_msa.rsync_drive_resources_to_remote_servers('studio', app_id_reference);
643
637
  break;
644
638
  }
645
639
 
646
640
  case 'workspace': {
647
- // const app_id_reference = await _common.get_project_app_id(app_id);
648
-
649
641
  if (doc.type === 'file') {
650
642
  try {
651
643
  if (doc.bucket) {
@@ -664,10 +656,6 @@ export const delete_drive_files = async (req, job_id, headers) => {
664
656
  } catch (error) {}
665
657
  }
666
658
 
667
- doc.ts = Date.now();
668
- doc.stat = 4;
669
- save_ret = await save_drive_doc(drive_type, uid, app_id, doc);
670
-
671
659
  break;
672
660
  }
673
661
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1426",
3
+ "version": "1.1.1428",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {