Skip to content

Commit

Permalink
fix: return when there is validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Dec 12, 2024
1 parent 4b25347 commit 8c4bdfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/module/review/review.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const createReview: Controller<CreateReviewSchema> = async (
status: "fail",
message: error.message,
});
return;
}

logger.error(`Failed to create review: ${error}`);
Expand Down

0 comments on commit 8c4bdfa

Please sign in to comment.