@xuda.io/account_module 1.2.914 → 1.2.916
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 +9 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1890,6 +1890,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1890
1890
|
if (account_info_ret.code < 0) {
|
|
1891
1891
|
throw new Error(`account ${contact_uid} not found`);
|
|
1892
1892
|
}
|
|
1893
|
+
} else {
|
|
1893
1894
|
}
|
|
1894
1895
|
const d = Date.now();
|
|
1895
1896
|
const doc = {
|
|
@@ -2342,7 +2343,12 @@ export const onboarding_completed = async function (req, job_id, headers) {
|
|
|
2342
2343
|
};
|
|
2343
2344
|
|
|
2344
2345
|
export const ts_contact = async function (contact_id) {
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2346
|
+
try {
|
|
2347
|
+
const contact_doc = await db_module.get_couch_doc_native('xuda_contacts', contact_id);
|
|
2348
|
+
contact_doc.ts = Date.now();
|
|
2349
|
+
const save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
2350
|
+
return save_ret;
|
|
2351
|
+
} catch (err) {
|
|
2352
|
+
console.error(err);
|
|
2353
|
+
}
|
|
2348
2354
|
};
|