Skip to content

Commit

Permalink
Saqué una función inutil.
Browse files Browse the repository at this point in the history
  • Loading branch information
c3r38r170 committed Apr 24, 2024
1 parent f011c44 commit b1f23a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/v1/pregunta.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ router.get("/", (req, res) => {
});
});

function editarPregunta(req, res, respuestaIA = null) {
}

router.patch("/", function (req, res) {
Pregunta.findByPk(req.body.ID, {
include: [
Expand All @@ -54,6 +51,7 @@ router.patch("/", function (req, res) {
],
})
.then((pregunta) => {
// TODO Refactor: Usar early return en vez de anidar tanto if-else
if (!pregunta) {
res.status(404).send("Pregunta no encontrada");
return;
Expand Down

0 comments on commit b1f23a6

Please sign in to comment.