@xuda.io/drive_module 1.1.464 → 1.1.465
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 +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -517,6 +517,7 @@ exports.delete_drive_files = async function (req) {
|
|
|
517
517
|
if (doc_ret.data.type === "file") {
|
|
518
518
|
await module.exports.delete_file_from_bucket(doc_ret.data.bucket);
|
|
519
519
|
} else {
|
|
520
|
+
// folder
|
|
520
521
|
const docs = await get_folder_docs(
|
|
521
522
|
path.basename(file.path),
|
|
522
523
|
drive_type,
|
|
@@ -524,6 +525,9 @@ exports.delete_drive_files = async function (req) {
|
|
|
524
525
|
);
|
|
525
526
|
for await (let doc of docs) {
|
|
526
527
|
await module.exports.delete_file_from_bucket(doc.bucket);
|
|
528
|
+
doc.ts = Date.now();
|
|
529
|
+
doc.stat = 4;
|
|
530
|
+
await db_module.save_app_couch_doc(app_id_reference, doc);
|
|
527
531
|
}
|
|
528
532
|
}
|
|
529
533
|
|