We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 346995f commit 2de350fCopy full SHA for 2de350f
1 file changed
backend/src/components/canadaPost.js
@@ -46,10 +46,8 @@ async function findAddresses(req, res) {
46
'Content-Type': 'application/json',
47
};
48
const response = await axios.get(url, headers);
49
- console.log('response.data' + response.data);
50
if (Array.isArray(response.data) && response.data[0]?.Error) {
51
const errorObj = response.data[0];
52
- console.log('errorObj' + errorObj);
53
log.error('Canada Post address object contains an error', {
54
searchTerm: req?.query?.searchTerm,
55
errorCode: errorObj.Error,
0 commit comments