@xuda.io/drive_module 1.1.1268 → 1.1.1270
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -474,7 +474,7 @@ export const delete_drive_files = async (req, job_id, headers) => {
|
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
for await (const file of files_arr) {
|
|
477
|
-
let doc = await get_drive_doc(
|
|
477
|
+
let doc = await get_drive_doc(file.type, drive_type, app_id, uid, file.file_path, headers);
|
|
478
478
|
|
|
479
479
|
let save_ret;
|
|
480
480
|
switch (drive_type) {
|
|
@@ -1688,7 +1688,7 @@ const get_drive_doc = async (type, drive_type, app_id, uid, file_path, headers)
|
|
|
1688
1688
|
app_id,
|
|
1689
1689
|
uid,
|
|
1690
1690
|
drive_type,
|
|
1691
|
-
file_path,
|
|
1691
|
+
file_path: type === 'file' ? file_path : '/',
|
|
1692
1692
|
type,
|
|
1693
1693
|
};
|
|
1694
1694
|
const check_existing_file_ret = await check_drive_file(check_req);
|