@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.
- package/index.mjs +17 -0
- 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
|
|