@xuda.io/drive_module 1.1.1425 → 1.1.1427

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 +2 -7
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -612,6 +612,7 @@ export const delete_drive_files = async (req, job_id, headers) => {
612
612
  default:
613
613
  break;
614
614
  }
615
+ ret = await db_module.sava_app_couch_bulk_docs(app_id_delete, docs);
615
616
 
616
617
  // cleanup
617
618
  for await (const file of files_arr) {
@@ -629,14 +630,8 @@ export const delete_drive_files = async (req, job_id, headers) => {
629
630
  case 'studio': {
630
631
  const app_id_reference = await _common.get_project_app_id(app_id);
631
632
  const target_dir = path.join(_conf[`studio_drive_path`], app_id_reference, file.file_path);
632
- console.log('target_dir', target_dir);
633
- rimraf.sync(target_dir);
634
633
 
635
- if (doc.type === 'file') {
636
- doc.ts = Date.now();
637
- doc.stat = 4;
638
- save_ret = await db_module.save_app_couch_doc(app_id_reference, doc);
639
- }
634
+ rimraf.sync(target_dir);
640
635
 
641
636
  misc_msa.rsync_drive_resources_to_remote_servers('studio', app_id_reference);
642
637
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1425",
3
+ "version": "1.1.1427",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {