More server stability
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user