@xuda.io/account_module 1.2.490 → 1.2.492

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 +7 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1326,6 +1326,7 @@ export const get_contacts = async function (req) {
1326
1326
 
1327
1327
  //membership_plan
1328
1328
  doc.name = `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
1329
+
1329
1330
  doc.telephone = account_info_ret.data.phone;
1330
1331
 
1331
1332
  // doc.notifications = 45;
@@ -1339,10 +1340,14 @@ export const get_contacts = async function (req) {
1339
1340
  }
1340
1341
  }
1341
1342
 
1342
- doc.border = get_contact_border(doc);
1343
-
1344
1343
  doc.icon_pattern = get_contact_pattern(doc);
1345
1344
  }
1345
+ doc.border = get_contact_border(doc);
1346
+ if (!doc.name) {
1347
+ doc.name = doc.email;
1348
+ }
1349
+
1350
+ doc.email = '';
1346
1351
  }
1347
1352
 
1348
1353
  let requests_to = { docs: [] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.490",
3
+ "version": "1.2.492",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {