fix: Remove unused imports and fix logger.audit method call

- Remove unused 'cn' and 'TSurveyLanguage' imports from MatrixLabelChoice component
- Replace non-existent logger.audit() with logger.info() in audit logging service
- Resolves TypeScript build errors preventing CI from passing

Co-Authored-By: Johannes <johannes@formbricks.com>
This commit is contained in:
Devin AI
2025-06-25 07:33:52 +00:00
parent 1bb09dbd94
commit baa58b766d
2 changed files with 2 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ const validateEvent = (event: TAuditLogEvent): void => {
export const logAuditEvent = async (event: TAuditLogEvent): Promise<void> => {
try {
validateEvent(event);
logger.audit(event);
logger.info(event, "Audit event logged");
} catch (error) {
// Log error to application logger but don't throw
// This ensures audit logging failures don't break the application

View File

@@ -1,6 +1,5 @@
"use client";
import { cn } from "@/lib/cn";
import { QuestionFormInput } from "@/modules/survey/components/question-form-input";
import { Button } from "@/modules/ui/components/button";
import { TooltipRenderer } from "@/modules/ui/components/tooltip";
@@ -8,12 +7,7 @@ import { useSortable } from "@dnd-kit/sortable";
import { CSS } from "@dnd-kit/utilities";
import { useTranslate } from "@tolgee/react";
import { GripVerticalIcon, TrashIcon } from "lucide-react";
import {
TI18nString,
TSurvey,
TSurveyLanguage,
TSurveyMatrixQuestion,
} from "@formbricks/types/surveys/types";
import { TI18nString, TSurvey, TSurveyMatrixQuestion } from "@formbricks/types/surveys/types";
import { TUserLocale } from "@formbricks/types/user";
import { isLabelValidForAllLanguages } from "../lib/validation";