@xuda.io/account_module 1.2.315 → 1.2.317
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 +6 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -103,12 +103,18 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
103
103
|
if (!change) {
|
|
104
104
|
return { code: 1300, data: 'no change' };
|
|
105
105
|
}
|
|
106
|
+
|
|
107
|
+
//clean up received from req
|
|
106
108
|
delete account_obj.account_info.gtp_token;
|
|
107
109
|
delete account_obj.account_info.client_id;
|
|
108
110
|
delete account_obj.account_info.uid;
|
|
111
|
+
delete account_obj.account_info.token_ret;
|
|
112
|
+
delete account_obj.account_info.job_id;
|
|
113
|
+
delete account_obj.account_info.app_id;
|
|
109
114
|
|
|
110
115
|
if (!account_obj.account_project_id) {
|
|
111
116
|
const app_module = await import(`${module_path}/app_module/index.mjs`);
|
|
117
|
+
debugger;
|
|
112
118
|
const ret = await app_module.create_project({ token_ret: req.token_ret, uid, data: { app_name: `Account ${uid} main project`, is_account_project: true, app_plugins_purchased: [' @xuda.io/xuda-dbs-plugin-xuda', '@xuda.io/xuda-framework-plugin-tailwind'] } }, job_id, headers);
|
|
113
119
|
if (ret.code > -1) {
|
|
114
120
|
account_obj.account_project_id = ret.data;
|