Fehlerbehebung

This commit is contained in:
titver968
2025-05-12 11:57:29 +02:00
parent 0b4b131dad
commit 12253f50ac

View File

@@ -4,7 +4,9 @@ import type { RequestHandler } from './$types';
const prisma = new PrismaClient();
function checkAuth(cookies: unknown) {
import type { Cookies } from '@sveltejs/kit';
function checkAuth(cookies: Cookies) {
return cookies.get('admin_session') === 'true';
}