Skip to content

Commit

Permalink
Revert "Merge branch 'dev' into FE/filters"
Browse files Browse the repository at this point in the history
This reverts commit 22eb299, reversing
changes made to 797cf1a.
  • Loading branch information
TheSloanRanger committed Feb 2, 2024
1 parent 22eb299 commit c872167
Show file tree
Hide file tree
Showing 19 changed files with 136 additions and 2,355 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/pull-request-template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: TITLE HERE
about: ABOUT HERE
---

## Pull Request Overview
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '19.9.0'
- name: Change to BE directory
run: cd be
- name: Install BE dependencies
run: npm install
working-directory: be
Expand All @@ -25,3 +27,6 @@ jobs:
- name: Run Tests in BE
run: npm test
working-directory: be
- name: Build BE
run: npm run build
working-directory: be
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

9 changes: 0 additions & 9 deletions .husky/pre-push

This file was deleted.

4 changes: 2 additions & 2 deletions api/api_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ app.get("/", (req, res) => {
});

// 404 Error Handler (for any unhandled routes)
app.use((req, res) => {
app.use((req, res, next) => {
res.status(404).send("Resource not found");
});

// Generic Error Handler
app.use((error, req, res) => {
app.use((error, req, res, next) => {
console.error(error.stack);
res.status(500).send('Something broke!');
});
2 changes: 0 additions & 2 deletions api/atmRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ router.get("/api/atms", async (req, res) => {

router.post("/api/atms/filter", async (req, res) => {
try {


const atms = await db
.collection("ATMs")
.find({
Expand Down
3 changes: 1 addition & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node api_server.js",
"lint": "eslint ."
"start": "node api_server.js"
},
"author": "",
"license": "ISC",
Expand Down
61 changes: 0 additions & 61 deletions be/cacheUtil.js

This file was deleted.

38 changes: 1 addition & 37 deletions be/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions be/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"license": "ISC",
"devDependencies": {
"eslint": "^8.56.0",
"husky": "^9.0.10",
"jest": "^29.7.0",
"supertest": "^6.3.4"
},
Expand All @@ -22,7 +21,6 @@
"cors": "^2.8.5",
"dotenv": "^16.4.1",
"express": "^4.18.2",
"mongoose": "^8.1.0",
"node-cache": "^5.1.2"
"mongoose": "^8.1.0"
}
}
Loading

0 comments on commit c872167

Please sign in to comment.