Skip to content

Commit

Permalink
fix(BE): revert back to old version
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnbarHome committed Feb 2, 2024
1 parent 9c132f4 commit 35d3e0e
Show file tree
Hide file tree
Showing 4 changed files with 499 additions and 546 deletions.
18 changes: 7 additions & 11 deletions be/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,8 @@ router.post("/atms/filter", async (req, res) => {
headers: { "Content-Type": "application/json" }
};

const filteredAtms = await axios(filterATMsConfig);

const formattedAtms = formatDataForDisplay(filteredAtms.data, true);

res.json(formattedAtms);

const data = await withCache(fetchFromAPI, "atms/filter", requestData, 'POST');
res.json(data);
} catch (error) {
console.error("Error in /atms/filter route:", error.message);
res.status(500).send("Error processing request");
Expand Down Expand Up @@ -162,11 +158,11 @@ router.post("/branches/filter", async (req, res) => {
return response.data;
}, "branches/filter", branchFilterCriteria, 'POST');

const filteredBranches = await axios(filterBranchesConfig);

const formattedBranches = formatDataForDisplay(filteredBranches.data, false);

res.json(formattedBranches);
res.json(data);
} catch (error) {
console.error("Error in /branches/filter route:", error.message);
res.status(500).send("Error processing request");
}
});


Expand Down
2 changes: 1 addition & 1 deletion fe/dist/style.css

Large diffs are not rendered by default.

Loading

0 comments on commit 35d3e0e

Please sign in to comment.