From 026a88a9a92ec0d4d4712e0d7691399c71397fe6 Mon Sep 17 00:00:00 2001 From: mhmmdafif Date: Thu, 8 Jan 2026 13:16:13 +0700 Subject: [PATCH] remove validation at least 1 solution --- services/error_code.service.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/services/error_code.service.js b/services/error_code.service.js index 1c2c68f..01b9c2f 100644 --- a/services/error_code.service.js +++ b/services/error_code.service.js @@ -119,17 +119,6 @@ class ErrorCodeService { try { if (!data || typeof data !== "object") data = {}; - if ( - !data.solution || - !Array.isArray(data.solution) || - data.solution.length === 0 - ) { - throw new ErrorHandler( - 400, - "Error code must have at least 1 solution" - ); - } - const errorId = await createErrorCodeDb(brandId, { error_code: data.error_code, error_code_name: data.error_code_name,