probar sin compilar

This commit is contained in:
arturo
2020-03-09 21:04:59 -06:00
parent a6f60f1201
commit 06f3a32a35
+2
View File
@@ -33,6 +33,8 @@ app.post('/post_factura', async(req, res) => {
let correo = depurado(req.body.correo);
if (rfc.lenght > 245 || domicilio.lenght > 245 || telefono.lenght > 245 || correo.lenght > 255)
res.status(400).json({ error: true, msj: "Datos muy grandes" });
let p=`delete from factura where id_persona=${id_persona};`;
let pp= await query(p);
let cad = `insert into factura values(null, ${id_persona}, '${rfc}', '${domicilio}', '${telefono}', '${correo}');`;
let uni = await query(cad);
let n_cad=`select * from factura where id_persona=${id_persona};`;