diff --git a/routes/get_persona.js b/routes/get_persona.js index 8bcb2d7..b308178 100644 --- a/routes/get_persona.js +++ b/routes/get_persona.js @@ -47,7 +47,7 @@ app.get('/get_persona', async(req, res) => { ans.persona.carta_aceptacion = false; ans.persona.factura=false; let n_cad=`select * from factura where id_persona=${id_persona};`; - let n_ans=await query(n_cad); + n_ans=await query(n_cad); if(n_ans.length>0) ans.persona.factura=true; if (fs.existsSync(`./files/carta_aceptacion-${id_persona}.docx`)) {