This commit is contained in:
PxlLoewe
2025-07-06 00:36:48 -07:00
parent 2cdbab9f28
commit a9d20e018d
13 changed files with 72 additions and 19 deletions

View File

@@ -438,10 +438,12 @@ export const MissionForm = () => {
} catch (error) {
if (error instanceof AxiosError) {
toast.error(
`Fehler beim Erstellen des Einsatzes: ${error.response?.data.error}`,
`Fehler beim Bearbeiten des Einsatzes: ${error.response?.data.error}`,
);
} else {
toast.error(`Fehler beim Erstellen des Einsatzes: ${(error as Error).message}`);
toast.error(
`Fehler beim Bearbeiten des Einsatzes: ${(error as Error).message}`,
);
}
}
})}

View File

@@ -2,7 +2,7 @@ import { prisma } from "@repo/db";
import { MessageCircleWarning } from "lucide-react";
export const WarningAlert = async () => {
const config = await prisma.notam.findFirst({
const config = await prisma.config.findFirst({
orderBy: [{ createdAt: "desc" }],
});

View File

@@ -30,7 +30,7 @@ export default async function RootLayout({
}>) {
const session = await getServerSession();
const config = await prisma.notam.findFirst({
const config = await prisma.config.findFirst({
orderBy: [{ createdAt: "desc" }],
});