IO-256 Genericize email.

This commit is contained in:
Patrick Fic
2021-10-13 15:10:36 -07:00
parent 61ad9f0d58
commit fda3620ed0
3 changed files with 7 additions and 10 deletions

View File

@@ -128,14 +128,13 @@ exports.default = async (req, res) => {
ret.push({ paymentid: payment.id, success: true });
} catch (error) {
logger.log("qbo-payment-create-error", "ERROR", req.user.email, {
error: (error && error.authResponse.body) || JSON.stringify(error),
error: JSON.stringify(error),
});
ret.push({
paymentid: payment.id,
success: false,
errorMessage:
(error && error.authResponse.body) || JSON.stringify(error),
errorMessage: JSON.stringify(error),
});
}
}