en teoria todo listo

This commit is contained in:
2021-04-17 10:20:11 -05:00
parent 6dae7e791e
commit c862f816d1
+6 -3
View File
@@ -24,9 +24,12 @@ const escolares = async (body) => {
creditos: res.data.avance,
carrera: res.data.carrconst.trim(),
};
while (nombre.search('‘') != -1 && nombre.search('Ã') != -1) {
nombre = nombre.replace('Ã', 'Ñ');
nombre = nombre.replace('‘', '');
while (
alumno.nombre.search('‘') != -1 &&
alumno.nombre.search('Ã') != -1
) {
alumno.nombre = alumno.nombre.replace('Ã', 'Ñ');
alumno.nombre = alumno.nombre.replace('‘', '');
}
return Carrera.findOne({ where: { carrera: alumno.carrera } });