@xuda.io/drive_module 1.1.1267 → 1.1.1269
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 +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -465,7 +465,7 @@ export const delete_drive_files = async (req, job_id, headers) => {
|
|
|
465
465
|
try {
|
|
466
466
|
const { drive_type, app_id, files_arr, uid } = req;
|
|
467
467
|
validate_drive_type(drive_type);
|
|
468
|
-
|
|
468
|
+
debugger;
|
|
469
469
|
if (!Array.isArray(files_arr)) {
|
|
470
470
|
return {
|
|
471
471
|
code: -400,
|
|
@@ -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) {
|
|
@@ -678,7 +678,7 @@ export const create_drive_folder = async (req, job_id, headers) => {
|
|
|
678
678
|
folder_name,
|
|
679
679
|
type: doc.type,
|
|
680
680
|
};
|
|
681
|
-
|
|
681
|
+
|
|
682
682
|
const check_existing_file_ret = await check_drive_file(check_req);
|
|
683
683
|
|
|
684
684
|
if (check_existing_file_ret.code < 0) {
|