improved error loggin and updated imports to fix build failure
This commit is contained in:
@@ -479,9 +479,9 @@ export default async function ApiProxy(req, res) {
|
||||
});
|
||||
return searchResultsObj.push(data);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(consoleLogger(err));
|
||||
res.status(400).json(err);
|
||||
.catch((error) => {
|
||||
consoleLogger(error);
|
||||
res.status(400).json(error);
|
||||
});
|
||||
|
||||
return resultObj;
|
||||
@@ -517,13 +517,6 @@ export default async function ApiProxy(req, res) {
|
||||
})
|
||||
);
|
||||
|
||||
console.log(
|
||||
"===========n\n appellant name:",
|
||||
appellantname,
|
||||
addressline1,
|
||||
county
|
||||
);
|
||||
|
||||
if (req.query.hasOwnProperty("appellantname")) {
|
||||
searchResultsObj = searchResultsObj.filter(
|
||||
(arr) =>
|
||||
|
||||
Reference in New Issue
Block a user