@xuda.io/account_module 1.2.911 → 1.2.913
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.mjs +7 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1638,7 +1638,7 @@ export const get_contacts = async function (req) {
|
|
|
1638
1638
|
delete opt.skip;
|
|
1639
1639
|
opt.limit = 9999;
|
|
1640
1640
|
opt.fields = ['_id'];
|
|
1641
|
-
|
|
1641
|
+
|
|
1642
1642
|
const counter = await db_module.find_couch_query('xuda_contacts', opt);
|
|
1643
1643
|
contacts.total_docs = counter.docs.length;
|
|
1644
1644
|
}
|
|
@@ -2340,3 +2340,9 @@ export const onboarding_completed = async function (req, job_id, headers) {
|
|
|
2340
2340
|
return { code: -44, data: err.message };
|
|
2341
2341
|
}
|
|
2342
2342
|
};
|
|
2343
|
+
|
|
2344
|
+
export const ts_contact = async function (contact_id) {
|
|
2345
|
+
const contact_doc = await db_module.get_couch_doc_native('xuda_contacts', contact_id);
|
|
2346
|
+
contact_doc.ts = Date.now();
|
|
2347
|
+
const save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
2348
|
+
};
|