@xuda.io/account_module 1.2.137 → 1.2.138
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 +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -444,7 +444,7 @@ exports.get_account_data = async function (req) {
|
|
|
444
444
|
// }
|
|
445
445
|
// }
|
|
446
446
|
|
|
447
|
-
if (!acc_obj.account_project_id) {
|
|
447
|
+
if (!acc_obj.account_project_id && req.token_ret) {
|
|
448
448
|
let = account_obj = acc_obj;
|
|
449
449
|
const app_module = require(`${module_path}/app_module`);
|
|
450
450
|
const ret = await app_module.create_project({ token_ret: req.token_ret, uid, data: { app_name: `Account ${uid} main project`, is_account_project: true } });
|