Skip to content

Commit

Permalink
fix: unneeded depends
Browse files Browse the repository at this point in the history
  • Loading branch information
j4w8n-malynium committed Mar 22, 2024
1 parent 50f4f2e commit 44a12b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routes/(authenticated)/admin/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { JWT_SECRET } from '$env/static/private'
import { redirect } from '@sveltejs/kit'
import jwt from 'jsonwebtoken'

export const load = async ({ locals: { getSession }, depends }) => {
depends('supabase:auth')

export const load = async ({ locals: { getSession } }) => {
const session = await getSession()

if (!session) redirect(307, '/auth');
Expand Down

0 comments on commit 44a12b6

Please sign in to comment.