@xuda.io/account_module 1.2.913 → 1.2.915
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 +8 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2342,7 +2342,12 @@ export const onboarding_completed = async function (req, job_id, headers) {
|
|
|
2342
2342
|
};
|
|
2343
2343
|
|
|
2344
2344
|
export const ts_contact = async function (contact_id) {
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2345
|
+
try {
|
|
2346
|
+
const contact_doc = await db_module.get_couch_doc_native('xuda_contacts', contact_id);
|
|
2347
|
+
contact_doc.ts = Date.now();
|
|
2348
|
+
const save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
2349
|
+
return save_ret;
|
|
2350
|
+
} catch (err) {
|
|
2351
|
+
console.error(err);
|
|
2352
|
+
}
|
|
2348
2353
|
};
|