@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.
- package/index.js +5 -3
- 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
|
-
|
|
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
|
-
|
|
100
|
-
|
|
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);
|