Skip to content

Commit 711f534

Browse files
fix: build backend
1 parent c864cc7 commit 711f534

File tree

5 files changed

+8
-15
lines changed

5 files changed

+8
-15
lines changed

backend/.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/node_modules
2+
/dist
3+
/coverage
4+
/build
5+
/logs
6+
/tmp

backend/package-lock.json

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"@types/node": "^22.13.10",
3131
"@types/node-cron": "^3.0.11",
3232
"@types/sqlite3": "^5.1.0",
33-
"@types/testing-library__jest-dom": "^6.0.0",
3433
"jest": "^29.7.0",
3534
"jest-environment-jsdom": "^29.7.0",
3635
"ts-jest": "^29.2.6",

backend/src/__tests__/services/database.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('DatabaseService', () => {
168168
expect(location).toHaveProperty('lat', 40.7128);
169169
expect(location).toHaveProperty('lon', -74.0060);
170170
expect(location).toHaveProperty('tags');
171-
expect(location.tags).toEqual({ name: 'Location 1', amenity: 'cafe' });
171+
expect(location?.tags).toEqual({ name: 'Location 1', amenity: 'cafe' });
172172
expect(location).toHaveProperty('source', 'overpass');
173173
});
174174

backend/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ app.get("/api/coordinates", async (req: express.Request, res: express.Response)
4646
});
4747

4848
// Endpoint to get location details by ID
49-
app.get("/api/locations/:id", async (req: express.Request, res: express.Response) => {
49+
app.get("/api/locations/:id", async (req: any, res: any) => {
5050
try {
5151
const location = await db.getLocationById(req.params.id);
5252

0 commit comments

Comments
 (0)