validar texto

This commit is contained in:
xXpuma99Xx
2022-01-02 15:27:30 -06:00
parent 9b153520e8
commit 0b04777c0c
9 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const serviciosAdmin = async (body) => {
? { idStatus: validar.validarNumeroEntero(body.idStatus, 'id status') }
: {};
const nombre = body.nombre
? validar.validarTexto(body.nombre, 'El nombre', 60)
? validar.validarTexto(body.nombre, 'nombre', true, 60)
: '';
const numeroCuenta = body.numeroCuenta
? validar.validarNumeroCuenta(body.numeroCuenta)