@xuda.io/drive_module 1.1.471 → 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.
Files changed (2) hide show
  1. package/index.js +6 -5
  2. 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
- // 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);
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
 
@@ -2210,7 +2212,6 @@ const get_folder_size = async function (dir, drive_type, app_id) {
2210
2212
  selector: {
2211
2213
  docType: `${drive_type}_drive`,
2212
2214
  stat: 3,
2213
-
2214
2215
  file_path: path.join("/", dirPath),
2215
2216
  },
2216
2217
  limit: 99999,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.471",
3
+ "version": "1.1.473",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {