mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-16 10:32:10 +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 {
|
try {
|
||||||
const userId = await requireAuth(event);
|
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 repo = new PokedexExportIntegrationRepository(event.locals.supabase, userId, null);
|
||||||
const integrations = await repo.listAll();
|
const integrations = await repo.listAll();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user