@xuda.io/drive_module 1.1.461 → 1.1.462
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 +2 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -514,17 +514,16 @@ exports.delete_drive_files = async function (req) {
|
|
|
514
514
|
path.basename(file.path)
|
|
515
515
|
);
|
|
516
516
|
|
|
517
|
-
let arr = [];
|
|
518
517
|
if (doc_ret.data.type === "file") {
|
|
518
|
+
await module.exports.delete_file_from_bucket(doc_ret.data.bucket);
|
|
519
519
|
} else {
|
|
520
|
-
|
|
520
|
+
const docs = await get_folder_docs(
|
|
521
521
|
path.basename(file.path),
|
|
522
522
|
drive_type,
|
|
523
523
|
app_id_reference
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
-
await module.exports.delete_file_from_bucket(doc_ret.data.bucket);
|
|
528
527
|
doc_ret.data.ts = Date.now();
|
|
529
528
|
doc_ret.data.stat = 4;
|
|
530
529
|
save_ret = await db_module.save_app_couch_doc(
|