refactor(api): drop the redundant setSession in export-integrations

requireAuth has already resolved the session on locals.supabase.
This commit is contained in:
Josh Creek
2026-09-15 17:49:04 +01:00
parent 0c1de9a93d
commit 3ee69f0d04
@@ -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();