@xuda.io/account_module 1.2.133 → 1.2.135

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 +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -94,10 +94,12 @@ exports.update_account_info = async function (req) {
94
94
 
95
95
  if (!account_obj.account_project_id) {
96
96
  const app_module = require(`${module_path}/app_module`);
97
- debugger;
97
+
98
98
  const ret = await app_module.create_project({ token_ret: req.token_ret, uid, data: { app_name: `Account ${uid} main project`, is_account_project: true } });
99
- console.log('>>>>>>>>>>>', ret);
100
- // account_obj.account_project_id;
99
+
100
+ if (ret.code > -1) {
101
+ account_obj.account_project_id = ret.data;
102
+ }
101
103
  }
102
104
 
103
105
  const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.133",
3
+ "version": "1.2.135",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {