More server stability

This commit is contained in:
2024-11-28 12:29:36 +01:00
parent 947ed225b6
commit 831a667a27
8 changed files with 56 additions and 29 deletions

View File

@@ -98,7 +98,7 @@ location.get("/location/:urlName", (req: Request, res: Response) => {
res.status(200).json(location)
})
.catch(e => {
.catch(error => {
res.status(404).send()
})
})
@@ -133,4 +133,7 @@ location.get("/search", (req: Request, res: Response) => {
.then(locations => {
res.status(200).json(locations)
})
.catch(error => {
res.status(500).send()
})
})