@xuda.io/drive_module 1.1.1422 → 1.1.1424
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 +2 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -599,19 +599,18 @@ export const delete_drive_files = async (req, job_id, headers) => {
|
|
|
599
599
|
case 'workspace':
|
|
600
600
|
case 'studio': {
|
|
601
601
|
app_id_delete = await _common.get_project_app_id(app_id);
|
|
602
|
-
|
|
603
602
|
break;
|
|
604
603
|
}
|
|
605
604
|
|
|
606
605
|
case 'user': {
|
|
607
|
-
app_id_delete = uid;
|
|
608
|
-
|
|
606
|
+
app_id_delete = await get_account_default_project_id(uid);
|
|
609
607
|
break;
|
|
610
608
|
}
|
|
611
609
|
default:
|
|
612
610
|
break;
|
|
613
611
|
}
|
|
614
612
|
|
|
613
|
+
// cleanup
|
|
615
614
|
for await (const file of files_arr) {
|
|
616
615
|
let doc = await get_drive_doc(file.type, drive_type, app_id, uid, file.file_path, headers);
|
|
617
616
|
|