probar sin compilar

This commit is contained in:
arturo
2020-03-09 21:27:35 -06:00
parent afe74286f5
commit f04cfa63a4
3 changed files with 55 additions and 4 deletions
+5
View File
@@ -45,6 +45,11 @@ app.get('/get_persona', async(req, res) => {
ans.persona.comprobante_pago = false;
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);
if(n_ans.length>0)
ans.persona.factura=true;
if (fs.existsSync(`./files/carta_aceptacion-${id_persona}.docx`)) {
ans.persona.carta_aceptacion = true;