Fehlerbehebung
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user