@xuda.io/account_module 1.2.170 → 1.2.171
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 +6 -1
- 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
499
|
const { first_name, last_name, website, country, bio, industry } = data.data.account_info;
|
|
495
|
-
|
|
500
|
+
|
|
496
501
|
obj = {
|
|
497
502
|
first_name,
|
|
498
503
|
last_name,
|