@xuda.io/drive_module 1.1.466 → 1.1.468
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 +10 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -476,7 +476,7 @@ exports.delete_drive_files = async function (req) {
|
|
|
476
476
|
data: "error - files_arr must be Array",
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
if (drive_type === "workspace") {
|
|
479
|
+
if (drive_type === "workspace" && type === "file") {
|
|
480
480
|
const app_id_reference = await _common.get_project_app_id(app_id);
|
|
481
481
|
req.files_arr.forEach(function (file) {
|
|
482
482
|
if (!file.path.includes(app_id_reference)) {
|
|
@@ -524,19 +524,20 @@ exports.delete_drive_files = async function (req) {
|
|
|
524
524
|
app_id_reference
|
|
525
525
|
);
|
|
526
526
|
for await (let doc of docs) {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
doc.
|
|
530
|
-
|
|
527
|
+
console.log(doc);
|
|
528
|
+
// await module.exports.delete_file_from_bucket(doc.bucket);
|
|
529
|
+
// doc.ts = Date.now();
|
|
530
|
+
// doc.stat = 4;
|
|
531
|
+
// await db_module.save_app_couch_doc(app_id_reference, doc);
|
|
531
532
|
}
|
|
532
533
|
}
|
|
533
534
|
|
|
534
535
|
doc_ret.data.ts = Date.now();
|
|
535
536
|
doc_ret.data.stat = 4;
|
|
536
|
-
save_ret = await db_module.save_app_couch_doc(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
);
|
|
537
|
+
// save_ret = await db_module.save_app_couch_doc(
|
|
538
|
+
// app_id_reference,
|
|
539
|
+
// doc_ret.data
|
|
540
|
+
// );
|
|
540
541
|
|
|
541
542
|
break;
|
|
542
543
|
}
|