From 135012872a13b2b1751661fd0194913234816cd7 Mon Sep 17 00:00:00 2001 From: Eliezer Steinbock <3090527+elie222@users.noreply.github.com> Date: Wed, 1 Jan 2025 13:01:13 +0200 Subject: [PATCH] Fix build --- apps/web/utils/actions/ai-rule.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/web/utils/actions/ai-rule.ts b/apps/web/utils/actions/ai-rule.ts index d1d4326eb..d7be451af 100644 --- a/apps/web/utils/actions/ai-rule.ts +++ b/apps/web/utils/actions/ai-rule.ts @@ -679,13 +679,13 @@ export const saveRulesPromptAction = withActionInstrumentation( where: { id: rule.rule.id, userId: session.user.id }, }); } catch (error) { - if (isNotFoundError(error)) return; - - logger.error("Error deleting rule", { - email: user.email, - ruleId: rule.rule.id, - error: error instanceof Error ? error.message : "Unknown error", - }); + if (!isNotFoundError(error)) { + logger.error("Error deleting rule", { + email: user.email, + ruleId: rule.rule.id, + error: error instanceof Error ? error.message : "Unknown error", + }); + } } }