@xuda.io/account_module 1.2.773 → 1.2.775

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 +3 -12
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1378,6 +1378,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1378
1378
  doc.state = account_info_ret.data.state;
1379
1379
  doc.zip = account_info_ret.data.zip;
1380
1380
  doc.account_type = account_info_ret.data.account_type;
1381
+ doc.email = doc.email?.[0];
1381
1382
  } else {
1382
1383
  doc.email = doc.email?.[0];
1383
1384
  doc.emails = doc.email;
@@ -1510,18 +1511,6 @@ export const get_contacts = async function (req) {
1510
1511
  docType: 'contact',
1511
1512
  uid,
1512
1513
  stat: { $lt: 4 },
1513
- // $and: [
1514
- // {
1515
- // $or: [
1516
- // {
1517
- // uid,
1518
- // },
1519
- // {
1520
- // contact_uid: uid,
1521
- // },
1522
- // ],
1523
- // },
1524
- // ],
1525
1514
  },
1526
1515
  limit: limit ? limit : 99999,
1527
1516
  };
@@ -2146,6 +2135,8 @@ export const onboarding_completed = async function (req, job_id, headers) {
2146
2135
  throw new Error(`missing profile_avatar`);
2147
2136
  }
2148
2137
 
2138
+ await update_account_info(req, job_id, headers);
2139
+
2149
2140
  if (!account_doc.account_project_id) {
2150
2141
  const app_module = await import(`${module_path}/app_module/index.mjs`);
2151
2142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.773",
3
+ "version": "1.2.775",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {