@xuda.io/account_module 1.2.108 → 1.2.110

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 +10 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -6,6 +6,7 @@ const _common = require(path.join(process.env.XUDA_HOME, 'common', 'xuda_node_co
6
6
  const _ = require('lodash');
7
7
  const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
8
8
  const db_module = require(`${module_path}/db_module`);
9
+ const jobs_module = require(`${module_path}/jobs_module`);
9
10
 
10
11
  exports.update_account_info = async function (req) {
11
12
  const marketplace_module = require(`${module_path}/marketplace_module`);
@@ -1361,10 +1362,17 @@ const get_prices = function (uid, item) {
1361
1362
  return price;
1362
1363
  };
1363
1364
 
1364
- exports.create_account_oauth_link = async function (req) {
1365
+ exports.create_account_oauth_link = async function (req, job_id) {
1366
+ await jobs_module.update_job(
1367
+ {
1368
+ job_id,
1369
+ current_step_name: `creating ${app_obj.app_type} server`,
1370
+ },
1371
+ global[`_deploy_module_ch`],
1372
+ );
1365
1373
  return {
1366
1374
  code: 1,
1367
- data: `https://accounts.google.com/o/oauth2/v2/auth?scope=https://mail.google.com/&access_type=offline&include_granted_scopes=true&response_type=code&state=this.$store.state.USER_DATA.UID&redirect_uri=https://${_conf.is_debug ? 'dev.' : ''}xuda.io/oauth&client_id=${_conf.gmail.clientId}`,
1375
+ data: `https://accounts.google.com/o/oauth2/v2/auth?scope=https://mail.google.com/&access_type=offline&include_granted_scopes=true&response_type=code&state=${req.uid}&redirect_uri=https://${_conf.is_debug ? 'dev.' : ''}xuda.io/oauth&client_id=${_conf.gmail.clientId}`,
1368
1376
  };
1369
1377
  };
1370
1378
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.108",
3
+ "version": "1.2.110",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {