@xuda.io/account_module 1.2.1360 → 1.2.1362

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.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1286,6 +1286,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1286
1286
  const req_doc = await db_module.get_couch_doc_native('xuda_team', doc.team_req_id);
1287
1287
  doc.connection_stat = req_doc.team_req_stat;
1288
1288
  doc.connection_type = req_doc.access_type;
1289
+ doc.connection_uid = req_doc.team_req_from_uid === uid ? req_doc.team_req_to_uid : req_doc.team_req_from_uid;
1289
1290
  if (doc.connection_type === 'contact_connection') {
1290
1291
  doc.friend_since = req_doc.team_req_date;
1291
1292
  }
@@ -1858,7 +1859,7 @@ export const onboarding_completed = async function (req, job_id, headers) {
1858
1859
  }
1859
1860
  };
1860
1861
 
1861
- export const ts_contact = async function (contact_id) {
1862
+ export const ts_contact = async function (uid, contact_id) {
1862
1863
  try {
1863
1864
  const contact_doc = await get_contact(uid, contact_id);
1864
1865
  contact_doc.ts = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1360",
3
+ "version": "1.2.1362",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {