🐛 Fixed more errors coming from upgrading SvelteKit

This commit is contained in:
Mawoka
2022-08-18 17:07:02 +02:00
parent cacd727c0e
commit dcddb3b764
14 changed files with 51 additions and 36 deletions
@@ -0,0 +1,12 @@
import { redirect } from '@sveltejs/kit';
export const load = async ({ parent }) => {
const { email } = await parent();
if (!email) {
throw redirect(302, '/account/login?returnTo=/dashboard');
}
return {
email
};
};