@xuda.io/drive_module 1.1.1151 → 1.1.1153

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 +16 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2110,24 +2110,12 @@ setTimeout(async function () {
2110
2110
  // })
2111
2111
  // );
2112
2112
  // module.exports.run_drive_pending_ocr();
2113
- fix_date_modified();
2113
+ // fix_date_modified();
2114
2114
  }, 2000);
2115
2115
 
2116
2116
  const fix_date_modified = async function () {
2117
- // const app_id = 'prj3937cb6f9a31c8c7dea25055bba845b1';
2118
- // const ret = await db_module.find_app_couch_query(app_id, { selector: { docType: 'studio_drive' } });
2119
-
2120
- // for (doc of ret.docs) {
2121
- // if (!doc.date_modified) {
2122
- // doc.date_modified = 0;
2123
- // }
2124
- // }
2125
-
2126
- // const save_ret = await db_module.sava_app_couch_bulk_docs(app_id, ret.docs);
2127
- // console.log('fix_date_modified', save_ret, ret);
2128
-
2129
- const db_name = 'db_prj_3uh4q1zj0llw3mj4wgifh1';
2130
- const ret = await db_module.find_couch_query(db_name, { selector: { docType: 'user_drive' } });
2117
+ const app_id = 'prj3937cb6f9a31c8c7dea25055bba845b1';
2118
+ const ret = await db_module.find_app_couch_query(app_id, { selector: { docType: 'studio_drive' } });
2131
2119
 
2132
2120
  for (doc of ret.docs) {
2133
2121
  if (!doc.date_modified) {
@@ -2135,6 +2123,18 @@ const fix_date_modified = async function () {
2135
2123
  }
2136
2124
  }
2137
2125
 
2138
- const save_ret = await db_module.save_couch_bulk_docs(db_name, ret.docs);
2126
+ const save_ret = await db_module.sava_app_couch_bulk_docs(app_id, ret.docs);
2139
2127
  console.log('fix_date_modified', save_ret, ret);
2128
+
2129
+ // const db_name = 'db_prj_3uh4q1zj0llw3mj4wgifh1';
2130
+ // const ret = await db_module.find_couch_query(db_name, { selector: { docType: 'workspace_drive' } });
2131
+
2132
+ // for (doc of ret.docs) {
2133
+ // if (!doc.date_modified) {
2134
+ // doc.date_modified = 0;
2135
+ // }
2136
+ // }
2137
+
2138
+ // const save_ret = await db_module.save_couch_bulk_docs(db_name, ret.docs);
2139
+ // console.log('fix_date_modified', save_ret, ret);
2140
2140
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1151",
3
+ "version": "1.1.1153",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {