🔇 Removed console.log's

This commit is contained in:
Mawoka
2022-08-25 19:37:26 +02:00
parent d02b72ca24
commit a066dc867d
3 changed files with 17 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { redirect } from '@sveltejs/kit';
export const load = async ({ parent }) => {
const { email } = await parent();
if (email) {
throw redirect(302, '/dashboard');
}
return {
email
};
};