@xuda.io/account_module 1.2.170 → 1.2.172

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 +7 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -482,6 +482,7 @@ export const get_account_name = async function (req) {
482
482
  if (data.code < 0) {
483
483
  return data;
484
484
  }
485
+ const { membership_plan = '', support_plan = '', storage_plan = '', date_created_ts = '' } = data.data;
485
486
  var obj = {
486
487
  first_name: '',
487
488
  last_name: '',
@@ -489,10 +490,14 @@ export const get_account_name = async function (req) {
489
490
  phone: '',
490
491
  profile_picture: '',
491
492
  username: '',
493
+ membership_plan,
494
+ support_plan,
495
+ storage_plan,
496
+ date_created_ts,
492
497
  };
493
498
  if (data.data.account_info) {
494
- const { first_name, last_name, website, country, bio, industry } = data.data.account_info;
495
- const { membership_plan, support_plan, storage_plan, date_created_ts } = data.data;
499
+ const { first_name, last_name, website, country, bio, industry, email } = data.data.account_info;
500
+
496
501
  obj = {
497
502
  first_name,
498
503
  last_name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.170",
3
+ "version": "1.2.172",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {