actualizacion del json

This commit is contained in:
2021-05-31 13:03:48 -05:00
parent 82a6b10c4d
commit 2cff201087
+2 -1
View File
@@ -27,7 +27,8 @@ app.get('/busca_profesor', async(req, res) => {
aux.push(element);
});
return aux;
res.status(200).json({ data: aux, error: false });
return;
} catch (err) {
console.log(err)
res.status(400).json({error: true, msj: 'error al crear la consulta con sistemas', desc: err});