Update QBO callback.

This commit is contained in:
Patrick Fic
2023-07-27 11:41:08 -07:00
parent 4610be6f15
commit 744e1cf2be

View File

@@ -22,9 +22,9 @@ const oauthClient = new OAuthClient({
let url;
if (process.env.NODE_ENV === "production") {
url = `https://imex.online`;
url = `https://romeonline.io`;
} else if (process.env.NODE_ENV === "test") {
url = `https://test.imex.online`;
url = `https://test.romeonline.io`;
} else {
url = `http://localhost:3000`;
}
@@ -71,7 +71,7 @@ exports.default = async (req, res) => {
exports.refresh = async (oauthClient, req) => {
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();
await client.request(queries.SET_QBO_AUTH, {
email: req.user.email,