@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.
- package/index.mjs +17 -7
- 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
|
|
516
|
-
last_name
|
|
517
|
-
email
|
|
518
|
-
phone
|
|
519
|
-
profile_picture
|
|
520
|
-
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 };
|