IO-256 Genericize email.
This commit is contained in:
@@ -78,8 +78,7 @@ exports.default = async (req, res) => {
|
||||
ret.push({
|
||||
billid: bill.id,
|
||||
success: false,
|
||||
errorMessage:
|
||||
(error && error.authResponse.body) || JSON.stringify(error),
|
||||
errorMessage: JSON.stringify(error),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -114,7 +113,7 @@ async function QueryVendorRecord(oauthClient, req, bill) {
|
||||
);
|
||||
} catch (error) {
|
||||
logger.log("qbo-payables-error", "DEBUG", req.user.email, bill.id, {
|
||||
error: (error && error.authResponse.body) || JSON.stringify(error),
|
||||
error: JSON.stringify(error),
|
||||
method: "QueryVendorRecord",
|
||||
});
|
||||
throw error;
|
||||
@@ -137,7 +136,7 @@ async function InsertVendorRecord(oauthClient, req, bill) {
|
||||
return result && result.Vendor;
|
||||
} catch (error) {
|
||||
logger.log("qbo-payables-error", "DEBUG", req.user.email, bill.id, {
|
||||
error: (error && error.authResponse.body) || JSON.stringify(error),
|
||||
error: JSON.stringify(error),
|
||||
method: "InsertVendorRecord",
|
||||
});
|
||||
throw error;
|
||||
@@ -186,7 +185,7 @@ async function InsertBill(oauthClient, req, bill, vendor) {
|
||||
return result && result.Bill;
|
||||
} catch (error) {
|
||||
logger.log("qbo-payables-error", "DEBUG", req.user.email, bill.id, {
|
||||
error: (error && error.authResponse.body) || JSON.stringify(error),
|
||||
error: JSON.stringify(error),
|
||||
method: "InsertBill",
|
||||
});
|
||||
throw error;
|
||||
|
||||
@@ -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),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,8 +117,7 @@ exports.default = async (req, res) => {
|
||||
ret.push({
|
||||
jobid: job.id,
|
||||
success: false,
|
||||
errorMessage:
|
||||
(error && error.authResponse.body) || JSON.stringify(error),
|
||||
errorMessage: JSON.stringify(error),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user