@xuda.io/account_module 1.2.173 → 1.2.175
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -496,7 +496,7 @@ export const get_account_name = async function (req) {
|
|
|
496
496
|
date_created_ts,
|
|
497
497
|
};
|
|
498
498
|
if (data.data.account_info) {
|
|
499
|
-
const { first_name, last_name, website, country, bio, industry
|
|
499
|
+
const { first_name, last_name, email, phone, profile_picture, username, website, country, bio, industry } = data.data.account_info;
|
|
500
500
|
|
|
501
501
|
obj = {
|
|
502
502
|
first_name,
|
|
@@ -1467,7 +1467,7 @@ export const get_account_default_project_id = async function (uid) {
|
|
|
1467
1467
|
|
|
1468
1468
|
export const get_user_name = async function (uid) {
|
|
1469
1469
|
try {
|
|
1470
|
-
const account_info = await get_account_name(uid);
|
|
1470
|
+
const account_info = await get_account_name({ uid });
|
|
1471
1471
|
let username = 'unknown';
|
|
1472
1472
|
if (account_info) {
|
|
1473
1473
|
username = account_info.first_name + ' ' + account_info.last_name;
|