@xuda.io/drive_module 1.1.1149 → 1.1.1151
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 +15 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2114,8 +2114,20 @@ setTimeout(async function () {
|
|
|
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' } });
|
|
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' } });
|
|
2119
2131
|
|
|
2120
2132
|
for (doc of ret.docs) {
|
|
2121
2133
|
if (!doc.date_modified) {
|
|
@@ -2123,6 +2135,6 @@ const fix_date_modified = async function () {
|
|
|
2123
2135
|
}
|
|
2124
2136
|
}
|
|
2125
2137
|
|
|
2126
|
-
const save_ret = await db_module.
|
|
2138
|
+
const save_ret = await db_module.save_couch_bulk_docs(db_name, ret.docs);
|
|
2127
2139
|
console.log('fix_date_modified', save_ret, ret);
|
|
2128
2140
|
};
|