return objeto

This commit is contained in:
Lemuel Marquez
2021-01-14 16:02:57 -06:00
parent 0de481b596
commit 49005c7b52
19 changed files with 70 additions and 105 deletions
+3 -5
View File
@@ -76,11 +76,9 @@ const nuevo = async (body, file) => {
programaInterno,
})
)
.then((res) => {
return {
message: `Se Pre-Registro correctamente al alumno.`,
};
});
.then((res) => ({
message: `Se Pre-Registro correctamente al alumno.`,
}));
};
module.exports = nuevo;