diff --git a/components/dashboard/settings/notifications/delete-notification.tsx b/components/dashboard/settings/notifications/delete-notification.tsx index 0a3db329..468db851 100644 --- a/components/dashboard/settings/notifications/delete-notification.tsx +++ b/components/dashboard/settings/notifications/delete-notification.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { AlertDialog, AlertDialogAction, @@ -13,6 +12,7 @@ import { import { Button } from "@/components/ui/button"; import { api } from "@/utils/api"; import { TrashIcon } from "lucide-react"; +import React from "react"; import { toast } from "sonner"; interface Props { diff --git a/components/dashboard/settings/notifications/show-notifications.tsx b/components/dashboard/settings/notifications/show-notifications.tsx index 6bafbcc5..46fa5e8b 100644 --- a/components/dashboard/settings/notifications/show-notifications.tsx +++ b/components/dashboard/settings/notifications/show-notifications.tsx @@ -1,3 +1,8 @@ +import { + DiscordIcon, + SlackIcon, + TelegramIcon, +} from "@/components/icons/notification-icons"; import { Card, CardContent, @@ -9,11 +14,6 @@ import { api } from "@/utils/api"; import { BellRing, Mail } from "lucide-react"; import { AddNotification } from "./add-notification"; import { DeleteNotification } from "./delete-notification"; -import { - DiscordIcon, - SlackIcon, - TelegramIcon, -} from "@/components/icons/notification-icons"; import { UpdateNotification } from "./update-notification"; export const ShowNotifications = () => { diff --git a/package.json b/package.json index e913020b..a3d03cd3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "db:push": "drizzle-kit --config ./server/db/drizzle.config.ts", "db:truncate": "tsx -r dotenv/config ./server/db/reset.ts", "db:studio": "drizzle-kit studio --config ./server/db/drizzle.config.ts", - "check": "biome check", + "check": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true", "format": "biome format --write", "lint": "biome lint", "typecheck": "tsc", diff --git a/server/api/routers/settings.ts b/server/api/routers/settings.ts index 19299c11..69f5655c 100644 --- a/server/api/routers/settings.ts +++ b/server/api/routers/settings.ts @@ -58,8 +58,13 @@ export const settingsRouter = createTRPCRouter({ return true; }), reloadTraefik: adminProcedure.mutation(async () => { - await stopService("dokploy-traefik"); - await startService("dokploy-traefik"); + try { + await stopService("dokploy-traefik"); + await startService("dokploy-traefik"); + } catch (err) { + console.error(err); + } + return true; }), cleanUnusedImages: adminProcedure.mutation(async () => {