fix: misc check

This commit is contained in:
Théo 2023-09-17 23:04:35 +02:00
parent b7202656d1
commit 13f972b1f1

View file

@ -1,5 +1,6 @@
import { redirect, type ServerLoad } from '@sveltejs/kit'; import { redirect, type ServerLoad } from '@sveltejs/kit';
export const load: ServerLoad = async ({ locals: { user } }) => { export const load: ServerLoad = async ({ locals: { user }, parent }) => {
await parent();
if (!user) throw redirect(303, '/sign-in'); if (!user) throw redirect(303, '/sign-in');
}; };