@xuda.io/account_module 1.2.477 → 1.2.479

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1289,6 +1289,9 @@ export const get_contacts = async function (req) {
1289
1289
  // doc.telephone = `561-235-1675`;
1290
1290
  // doc.notifications = 45;
1291
1291
  // doc.online = true;
1292
+ if (doc.team_req_id) {
1293
+ doc.connected = 1;
1294
+ }
1292
1295
 
1293
1296
  doc.icon_pattern = get_contact_pattern(doc);
1294
1297
  }
@@ -1415,7 +1418,7 @@ export const add_contact = async function (req, job_id, headers) {
1415
1418
  const app_id = await get_account_default_project_id(uid);
1416
1419
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1417
1420
  if (account_info_ret?.data?.profile_avatar) {
1418
- ai_module.convert_profile_image_to_avatar({ url: account_info_ret.data.profile_picture, uid, account_obj: { account_info: account_info_ret.data } }, job_id, headers);
1421
+ ai_module.convert_profile_image_to_avatar({ url: account_info_ret.data.profile_picture, uid, account_obj: { _id: contact_uid, account_info: account_info_ret.data } }, job_id, headers);
1419
1422
  } else {
1420
1423
  // create factual avatar
1421
1424
  ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', app_id]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.477",
3
+ "version": "1.2.479",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {