@xuda.io/drive_module 1.1.1420 → 1.1.1422

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 +18 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -593,6 +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
+
603
+ break;
604
+ }
605
+
606
+ case 'user': {
607
+ app_id_delete = uid;
608
+
609
+ break;
610
+ }
611
+ default:
612
+ break;
613
+ }
596
614
 
597
615
  for await (const file of files_arr) {
598
616
  let doc = await get_drive_doc(file.type, drive_type, app_id, uid, file.file_path, headers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1420",
3
+ "version": "1.1.1422",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {