remove validation at least 1 solution

This commit is contained in:
2026-01-08 13:16:13 +07:00
parent 4d2c18edfb
commit 026a88a9a9

View File

@@ -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,