You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
406 B

const uid = _req.getUID("uid");
const dbPaciente = _db.form("paciente")
.where(_db.where("uid").equal(uid))
.first();
if (!dbPaciente) {
_header.status(404);
_out.json({ insertedData: 0, error: "paciente não encontrado" });
_exec.stop();
}
const deletedData = _db.form("paciente")
.where(_db.where("uid").equal(uid))
.delete("paciente_convenio");
_out.json({deletedData})