segundo intento ñ

This commit is contained in:
2021-04-17 09:36:59 -05:00
parent d20719f1cb
commit d12cd08b2d
+1 -1
View File
@@ -34,7 +34,7 @@ const escolares = async (body) => {
creditos: res.data.avance,
carrera: res.data.carrconst.trim(),
};
if (alumno.nombre.search('Ã') != 0)
if (alumno.nombre.search('Ã') >= -1)
alumno.nombre = alumno.nombre.replace('Ã', 'Ñ');
return Carrera.findOne({ where: { carrera: alumno.carrera } });
})