@xuda.io/account_module 1.2.765 → 1.2.767
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1347,7 +1347,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1347
1347
|
doc.profile_avatar = account_info_ret.data.profile_avatar;
|
|
1348
1348
|
|
|
1349
1349
|
//membership_plan
|
|
1350
|
-
doc.name = `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
|
|
1350
|
+
// doc.name = `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
|
|
1351
1351
|
doc.name = account_info_ret.data?.account_type === 'business' ? account_info_ret.data.business_name : `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
|
|
1352
1352
|
|
|
1353
1353
|
if (account_info_ret.data.phone_number) {
|
|
@@ -1376,6 +1376,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1376
1376
|
doc.city = account_info_ret.data.city;
|
|
1377
1377
|
doc.state = account_info_ret.data.state;
|
|
1378
1378
|
doc.zip = account_info_ret.data.zip;
|
|
1379
|
+
doc.account_type = account_info_ret.data.account_type;
|
|
1379
1380
|
} else {
|
|
1380
1381
|
doc.email = doc.email?.[0];
|
|
1381
1382
|
}
|