Revert "IO-256 Genericize email."

This reverts commit fda3620ed0.
This commit is contained in:
Patrick Fic
2021-10-13 15:14:26 -07:00
parent fda3620ed0
commit d7b884ff86
3 changed files with 10 additions and 7 deletions

View File

@@ -128,13 +128,14 @@ 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: JSON.stringify(error),
error: (error && error.authResponse.body) || JSON.stringify(error),
});
ret.push({
paymentid: payment.id,
success: false,
errorMessage: JSON.stringify(error),
errorMessage:
(error && error.authResponse.body) || JSON.stringify(error),
});
}
}