@xuda.io/drive_module 1.1.472 → 1.1.473
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.js +6 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -525,10 +525,12 @@ exports.delete_drive_files = async function (req) {
|
|
|
525
525
|
);
|
|
526
526
|
for await (let doc of docs) {
|
|
527
527
|
console.log(doc);
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
528
|
+
if (doc.type === "file") {
|
|
529
|
+
await module.exports.delete_file_from_bucket(doc.bucket);
|
|
530
|
+
}
|
|
531
|
+
doc.ts = Date.now();
|
|
532
|
+
doc.stat = 4;
|
|
533
|
+
await db_module.save_app_couch_doc(app_id_reference, doc);
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
536
|
|