From 1a8bea02782aa2cb342c5a0d7f739518847cab17 Mon Sep 17 00:00:00 2001 From: DanielRamirezGe Date: Tue, 15 Oct 2019 20:23:27 -0500 Subject: [PATCH] Actulizacion del error en la fecha de la conferencia --- routes/paseLista.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/paseLista.js b/routes/paseLista.js index 0cddc96..b037907 100644 --- a/routes/paseLista.js +++ b/routes/paseLista.js @@ -31,7 +31,7 @@ app.get('/paseLista', async(req, res) => { } console.log(results.length); if (results.length == 0) { - res.status(200).json({ msj: "No hay ninguna conferencia aun" }); + res.status(400).json({ error: true, msj: "No hay ninguna conferencia aun" }); return; } let id = results[0].idConferencia;