mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-19 02:10:33 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user