Skip to content

Commit

Permalink
cleaning code
Browse files Browse the repository at this point in the history
  • Loading branch information
aletya committed Nov 6, 2024
1 parent 22f2044 commit 202caa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/puzzle/puzzle-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ puzzleRouter.post(
return res.status(StatusCode.ClientErrorNotFound).send(PuzzleQuestionNotFoundError);
}

const puzzleAnswer = await Models.PuzzleAnswer.findOne({ qid: qid });
const puzzleAnswer = await Models.PuzzleAnswer.findOne({ qid });
if (!puzzleAnswer) {
return res.status(StatusCode.ClientErrorNotFound).send(PuzzleQuestionNotFoundError);
}
Expand Down

0 comments on commit 202caa7

Please sign in to comment.