Skip to content

Commit

Permalink
fix(CIT): Cannot set headers..
Browse files Browse the repository at this point in the history
  • Loading branch information
plammel committed Jun 21, 2022
1 parent d5dc8b4 commit ea16ede
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/matriculaciones/routes/turnoSolicitado.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ router.post('/turnoSolicitados', async (req, res, next) => {
req.body.profesionalMatriculado = true;
}
const newProfesional = new turnoSolicitado(req.body);
newProfesional.save((err2) => {
if (err2) {
next(err2);
newProfesional.save((error) => {
if (error) {
return next(error);
}
res.json(newProfesional);
});
Expand Down

0 comments on commit ea16ede

Please sign in to comment.