From 97b1caefa0e10821d6e7a07cd8686fffd0c6d063 Mon Sep 17 00:00:00 2001 From: DanielRamirezGe Date: Wed, 23 Oct 2019 11:47:58 -0500 Subject: [PATCH] actualizacion de fecha --- routes/paseLista.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/routes/paseLista.js b/routes/paseLista.js index b037907..5a8b51f 100644 --- a/routes/paseLista.js +++ b/routes/paseLista.js @@ -29,13 +29,14 @@ app.get('/paseLista', async(req, res) => { res.status(400).json({ error: true, msj: 'Error en la consulta de la fecha ' }); return; } - console.log(results.length); - if (results.length == 0) { - res.status(400).json({ error: true, msj: "No hay ninguna conferencia aun" }); - return; - } - let id = results[0].idConferencia; - //let id = 6 + + // console.log(results.length); + // if (results.length == 0) { + // res.status(400).json({ error: true, msj: "No hay ninguna conferencia aun" }); + // return; + // } + // let id = results[0].idConferencia; + let id = 7 connection.query(`select * from asistencia where idPersona=${req.query.idPersona} and idConferencia=${id};`, (e, r, f) => { if (e) {