escolares
This commit is contained in:
@@ -36,11 +36,25 @@ const escolares = async (body) => {
|
||||
const numeroCuenta = validarNumeroCuenta(body.numeroCuenta);
|
||||
let alumno;
|
||||
|
||||
/*
|
||||
return axios({
|
||||
method: 'post',
|
||||
url: `${process.env.ESCOLARES}${numeroCuenta}`,
|
||||
data: `${process.env.ESCOLARES_PASS}`,
|
||||
})
|
||||
|
||||
*/
|
||||
|
||||
return new Promise((res) => {
|
||||
res({
|
||||
data:{
|
||||
nombre:"nombre",
|
||||
carrconst:"Carrera",
|
||||
avance:"avance"
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
.then((res) => {
|
||||
if (!res.data.nombre || !res.data.carrconst || !res.data.avance)
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user