actualizacion de fecha
This commit is contained in:
+8
-7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user