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
+4 -2
View File
@@ -29,13 +29,15 @@ const update = async (body) => {
if (body.institucion)
dataUpdate.institucion = validar.validarTexto(
body.institucion,
'El texto institucion.',
'institucion',
false,
200
);
if (body.dependencia)
dataUpdate.dependencia = validar.validarTexto(
body.dependencia,
'El texto dependencia.',
'dependencia',
false,
200
);
if (body.motivo)