@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.
Files changed (2) hide show
  1. package/index.mjs +2 -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, email, phone } = data.data.account_info;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.173",
3
+ "version": "1.2.175",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {