This commit is contained in:
Lemuel Marquez
2021-01-05 23:59:05 -06:00
parent ede6b8ea71
commit ea43fb5ab4
7 changed files with 122 additions and 26 deletions
@@ -8,7 +8,7 @@ const Programa = require('../../db/tablas/Programa');
const registroValidado = async (body) => {
let idServicio = validar.validarId(body.idServicio);
let fechaNacimiento = validar.validarFecha(body.fechaNacimiento);
let telefono = validar.validarNumero(body.telefono, 10);
let telefono = validar.validarNumero(body.telefono, 15);
let direccion = validar.validarAlfanumerico(
body.direccion,
'La dirección',