mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-15 18:12:30 +00:00
refactor(api): drop the redundant setSession in export-integrations
requireAuth has already resolved the session on locals.supabase.
This commit is contained in:
@@ -7,11 +7,6 @@ export const GET = async (event: RequestEvent) => {
|
||||
try {
|
||||
const userId = await requireAuth(event);
|
||||
|
||||
const { session } = await event.locals.safeGetSession();
|
||||
if (session) {
|
||||
await event.locals.supabase.auth.setSession(session);
|
||||
}
|
||||
|
||||
const repo = new PokedexExportIntegrationRepository(event.locals.supabase, userId, null);
|
||||
const integrations = await repo.listAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user