@xuda.io/account_module 1.2.124 → 1.2.126

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.js +6 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -91,6 +91,11 @@ exports.update_account_info = async function (req) {
91
91
  delete account_obj.account_info.gtp_token;
92
92
  delete account_obj.account_info.client_id;
93
93
  delete account_obj.account_info.uid;
94
+
95
+ if (!account_obj.account_project_id) {
96
+ account_obj.account_project_id;
97
+ }
98
+
94
99
  const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
95
100
  if (ret2.code > 0) {
96
101
  return { code: 1300, data: 'ok' };
@@ -434,6 +439,7 @@ exports.get_account_data = async function (req) {
434
439
  // ret.data.stripe_membership_subscription_id = subscription_ret.data.id;
435
440
  // }
436
441
  // }
442
+
437
443
  return ret;
438
444
  } catch (error) {
439
445
  return { code: -1, data: error };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.124",
3
+ "version": "1.2.126",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {