@xuda.io/account_module 1.2.109 → 1.2.111
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 +9 -1
- 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,7 +1362,14 @@ 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 link',
|
|
1370
|
+
},
|
|
1371
|
+
global[`_deploy_module_ch`],
|
|
1372
|
+
);
|
|
1365
1373
|
return {
|
|
1366
1374
|
code: 1,
|
|
1367
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}`,
|