Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MeerUzairWasHere committed Sep 5, 2024
1 parent c56cba7 commit 759c5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/question/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const deleteQuestionHandler = async (
const { questionId } = data;

const question = await db.question.findUnique({
where: { id: questionId },
where: { id: questionId, authorId: userExists.id },
});

if (
Expand Down

0 comments on commit 759c5af

Please sign in to comment.