wisdom #37

Merged
bragaz_rexita merged 3 commits from wisdom into main 2026-01-08 07:43:58 +00:00
Showing only changes of commit 026a88a9a9 - Show all commits

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,