@xuda.io/drive_module 1.1.1421 → 1.1.1423

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 +17 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -593,7 +593,24 @@ export const delete_drive_files = async (req, job_id, headers) => {
593
593
  docs.push(await get_drive_doc(file.type, drive_type, app_id, uid, file.file_path, headers));
594
594
  } catch (error) {}
595
595
  }
596
+ // delete bulk docs
597
+ let app_id_delete;
598
+ switch (drive_type) {
599
+ case 'workspace':
600
+ case 'studio': {
601
+ app_id_delete = await _common.get_project_app_id(app_id);
602
+ break;
603
+ }
604
+
605
+ case 'user': {
606
+ app_id_delete = uid;
607
+ break;
608
+ }
609
+ default:
610
+ break;
611
+ }
596
612
 
613
+ // cleanup
597
614
  for await (const file of files_arr) {
598
615
  let doc = await get_drive_doc(file.type, drive_type, app_id, uid, file.file_path, headers);
599
616
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1421",
3
+ "version": "1.1.1423",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {