More server stability
This commit is contained in:
@@ -35,6 +35,9 @@ concert.get("/", (req: Request, res: Response) => {
|
||||
|
||||
res.status(200).json(concerts)
|
||||
})
|
||||
.catch(error => {
|
||||
res.status(500).send()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -154,4 +157,7 @@ concert.get("/search", (req: Request, res: Response) => {
|
||||
.then(concerts => {
|
||||
res.status(200).json(concerts)
|
||||
})
|
||||
.catch(error => {
|
||||
res.status(500).send()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user