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.
 

21 lines
347 B

const uid = _req.getString('uid','');
if (uid == '') {
_out.json(
_val.map()
.set("error",true)
.set("message", "UID is invalid!")
)
_exec.stop();
}
_db.execute("DELETE FROM cliente WHERE uid = ?::UUID",
_val.init()
.add(_req.getUUID('uid'))
)
_out.json(
_val.map()
.set("result", true)
.set("uid", uid)
)