From cf29dcc02e2c9ac593d6e8f0aff2589b80ffa994 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 31 Jan 2023 19:56:31 -0800 Subject: prettier --- src/routes/(app)/+layout.server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/routes/(app)/+layout.server.js') diff --git a/src/routes/(app)/+layout.server.js b/src/routes/(app)/+layout.server.js index 4c09937c..11337c2a 100644 --- a/src/routes/(app)/+layout.server.js +++ b/src/routes/(app)/+layout.server.js @@ -15,9 +15,9 @@ export async function load({ cookies, request, url, params }) { } catch (e) {} } - if (user?.needsMigration) { - throw redirect(307, `/migrate`); - } + if (user?.needsMigration) { + throw redirect(307, `/migrate`); + } if (user && ['/', '/login', '/register'].includes(pathname) && request.method === 'GET') { throw redirect(307, `/${user.username}/dashboard`); -- cgit v1.2.3