From 8c4bdfa9004a07973ab561bae9102d036ef59f06 Mon Sep 17 00:00:00 2001 From: Veirt Date: Thu, 12 Dec 2024 22:09:31 +0800 Subject: [PATCH] fix: return when there is validation error --- src/module/review/review.controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/module/review/review.controller.ts b/src/module/review/review.controller.ts index fdc9dd8..c5b5ed0 100644 --- a/src/module/review/review.controller.ts +++ b/src/module/review/review.controller.ts @@ -84,6 +84,7 @@ export const createReview: Controller = async ( status: "fail", message: error.message, }); + return; } logger.error(`Failed to create review: ${error}`);