@xuda.io/account_module 1.2.167 → 1.2.169
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 +2 -22
- 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 };
|
|
@@ -512,7 +492,7 @@ export const get_account_name = async function (req) {
|
|
|
512
492
|
};
|
|
513
493
|
if ((data.data.account_info, email, phone, profile_picture, username)) {
|
|
514
494
|
const { first_name, last_name, website, country, bio, industry } = data.data.account_info;
|
|
515
|
-
const { membership_plan, support_plan, storage_plan,
|
|
495
|
+
const { membership_plan, support_plan, storage_plan, date_created_ts } = data.data;
|
|
516
496
|
obj = {
|
|
517
497
|
first_name,
|
|
518
498
|
last_name,
|
|
@@ -527,7 +507,7 @@ export const get_account_name = async function (req) {
|
|
|
527
507
|
membership_plan,
|
|
528
508
|
support_plan,
|
|
529
509
|
storage_plan,
|
|
530
|
-
|
|
510
|
+
date_created_ts,
|
|
531
511
|
};
|
|
532
512
|
}
|
|
533
513
|
return { code: 1, data: obj };
|