@xuda.io/account_module 1.2.165 → 1.2.167

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 +17 -7
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -510,14 +510,24 @@ export const get_account_name = async function (req) {
510
510
  profile_picture: '',
511
511
  username: '',
512
512
  };
513
- if (data.data.account_info) {
513
+ if ((data.data.account_info, email, phone, profile_picture, username)) {
514
+ const { first_name, last_name, website, country, bio, industry } = data.data.account_info;
515
+ const { membership_plan, support_plan, storage_plan, date_created } = data.data;
514
516
  obj = {
515
- first_name: data.data.account_info.first_name,
516
- last_name: data.data.account_info.last_name,
517
- email: data.data.account_info.email,
518
- phone: data.data.account_info.tel,
519
- profile_picture: data.data.account_info.profile_picture,
520
- username: data.data.account_info.username,
517
+ first_name,
518
+ last_name,
519
+ email,
520
+ phone,
521
+ profile_picture,
522
+ username,
523
+ website,
524
+ country,
525
+ bio,
526
+ industry,
527
+ membership_plan,
528
+ support_plan,
529
+ storage_plan,
530
+ date_created,
521
531
  };
522
532
  }
523
533
  return { code: 1, data: obj };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.165",
3
+ "version": "1.2.167",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {