Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
elie222 committed Jan 1, 2025
1 parent cc9fa0d commit 1350128
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/web/utils/actions/ai-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
}
}
}

Expand Down

0 comments on commit 1350128

Please sign in to comment.