Skip to content

Commit

Permalink
Fixes del merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
c3r38r170 committed Mar 26, 2024
1 parent 542a9b0 commit 709e10d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion api/v1/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,6 @@ Pregunta.pagina = ({ pagina = 0, duenioID: duenioDNI, filtrar, formatoCorto, usu
}
}

console.log(opciones);
return Pregunta.findAll(opciones);
}
}
Expand Down
2 changes: 1 addition & 1 deletion api/v1/pregunta.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function crearPregunta(req, res, respuestaIA = null) {
.then(() => pregunta.save())
.then(() => {
// ! Sin las comillas se piensa que pusimos el status dentro del send
res.status(201).json({ID:pregunta.ID,motivo:respuestaIA?.motivo});
res.status(201).json({ID:pregunta.ID,motivo:reportado?respuestaIA.motivo:null});
})
})
.catch(err => {
Expand Down

0 comments on commit 709e10d

Please sign in to comment.