@xuda.io/account_module 1.2.166 → 1.2.168
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 +7 -21
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -430,26 +430,6 @@ export const get_account_data = async function (req) {
|
|
|
430
430
|
stripe_connect_account_status: acc_obj?.stripe_connect_account_status,
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
// if (account_ret.data.stripe_membership_subscription_id) {
|
|
434
|
-
// const subscription_ret = await get_stripe_subscription(
|
|
435
|
-
// account_ret.data.stripe_membership_subscription_id
|
|
436
|
-
// );
|
|
437
|
-
|
|
438
|
-
// if (subscription_ret.code > 0) {
|
|
439
|
-
// ret.data.stripe_membership_subscription_id = subscription_ret.data.id;
|
|
440
|
-
// }
|
|
441
|
-
// }
|
|
442
|
-
|
|
443
|
-
// if (!acc_obj.account_project_id && req.token_ret) {
|
|
444
|
-
// let = account_obj = acc_obj;
|
|
445
|
-
// const app_module = await import(`${module_path}/app_module/index.mjs`);
|
|
446
|
-
// const ret = await app_module.create_project({ token_ret: req.token_ret, uid, data: { app_name: `Account ${uid} main project`, is_account_project: true } });
|
|
447
|
-
// if (ret.code > -1) {
|
|
448
|
-
// account_obj.account_project_id = ret.data;
|
|
449
|
-
// const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
|
|
450
|
-
// }
|
|
451
|
-
// }
|
|
452
|
-
|
|
453
433
|
return ret;
|
|
454
434
|
} catch (error) {
|
|
455
435
|
return { code: -1, data: error };
|
|
@@ -511,7 +491,8 @@ export const get_account_name = async function (req) {
|
|
|
511
491
|
username: '',
|
|
512
492
|
};
|
|
513
493
|
if ((data.data.account_info, email, phone, profile_picture, username)) {
|
|
514
|
-
const { first_name, last_name, website, country, bio } = 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 } = data.data;
|
|
515
496
|
obj = {
|
|
516
497
|
first_name,
|
|
517
498
|
last_name,
|
|
@@ -522,6 +503,11 @@ export const get_account_name = async function (req) {
|
|
|
522
503
|
website,
|
|
523
504
|
country,
|
|
524
505
|
bio,
|
|
506
|
+
industry,
|
|
507
|
+
membership_plan,
|
|
508
|
+
support_plan,
|
|
509
|
+
storage_plan,
|
|
510
|
+
date_created,
|
|
525
511
|
};
|
|
526
512
|
}
|
|
527
513
|
return { code: 1, data: obj };
|