@xuda.io/drive_module 1.1.1424 → 1.1.1426
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -590,7 +590,10 @@ export const delete_drive_files = async (req, job_id, headers) => {
|
|
|
590
590
|
let docs = [];
|
|
591
591
|
for await (const file of files_arr) {
|
|
592
592
|
try {
|
|
593
|
-
|
|
593
|
+
let doc = await get_drive_doc(file.type, drive_type, app_id, uid, file.file_path, headers);
|
|
594
|
+
doc.ts = Date.now();
|
|
595
|
+
doc.stat = 4;
|
|
596
|
+
docs.push(doc);
|
|
594
597
|
} catch (error) {}
|
|
595
598
|
}
|
|
596
599
|
// delete bulk docs
|
|
@@ -609,6 +612,7 @@ export const delete_drive_files = async (req, job_id, headers) => {
|
|
|
609
612
|
default:
|
|
610
613
|
break;
|
|
611
614
|
}
|
|
615
|
+
ret = await db_module.sava_app_couch_bulk_docs(app_id_delete, docs);
|
|
612
616
|
|
|
613
617
|
// cleanup
|
|
614
618
|
for await (const file of files_arr) {
|