Update QBO callback.
This commit is contained in:
@@ -22,9 +22,9 @@ const oauthClient = new OAuthClient({
|
|||||||
let url;
|
let url;
|
||||||
|
|
||||||
if (process.env.NODE_ENV === "production") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
url = `https://imex.online`;
|
url = `https://romeonline.io`;
|
||||||
} else if (process.env.NODE_ENV === "test") {
|
} else if (process.env.NODE_ENV === "test") {
|
||||||
url = `https://test.imex.online`;
|
url = `https://test.romeonline.io`;
|
||||||
} else {
|
} else {
|
||||||
url = `http://localhost:3000`;
|
url = `http://localhost:3000`;
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@ exports.default = async (req, res) => {
|
|||||||
|
|
||||||
exports.refresh = async (oauthClient, req) => {
|
exports.refresh = async (oauthClient, req) => {
|
||||||
try {
|
try {
|
||||||
// logger.log("qbo-token-refresh", "DEBUG", req.user.email, null, null);
|
// logger.log("qbo-token-refresh", "DEBUG", req.user.email, null, null);
|
||||||
const authResponse = await oauthClient.refresh();
|
const authResponse = await oauthClient.refresh();
|
||||||
await client.request(queries.SET_QBO_AUTH, {
|
await client.request(queries.SET_QBO_AUTH, {
|
||||||
email: req.user.email,
|
email: req.user.email,
|
||||||
|
|||||||
Reference in New Issue
Block a user