fix: misc check
This commit is contained in:
parent
b7202656d1
commit
13f972b1f1
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
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');
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue