Improve exercise solution of 2.1, 2.2, 2.3 and 2.5

This commit is contained in:
2024-11-26 12:40:01 +01:00
parent b5364639a5
commit 07f486c72e
4 changed files with 77 additions and 22 deletions

View File

@@ -137,7 +137,6 @@ band.get("/search", async (req: Request, res: Response) => {
// On stacked prompts, execute last prompt
if (prompts.length > 1) {
console.log(prompts[prompts.length - 2])
const [results, metadata] =
await sequelize.query(prompts[prompts.length - 2])
@@ -154,6 +153,9 @@ band.get("/search", async (req: Request, res: Response) => {
.then(bands => {
res.status(200).json(bands)
})
.catch(e => {
res.status(200).send()
})
}
})