From 49056a706894ea88e77a31187be3f6012f2f2861 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Thu, 5 Jun 2025 01:38:18 -0700 Subject: [PATCH] chagned redirect after discord authentikation --- apps/hub/app/api/discord-redirect/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/hub/app/api/discord-redirect/route.ts b/apps/hub/app/api/discord-redirect/route.ts index ba0e604d..5e68eb52 100644 --- a/apps/hub/app/api/discord-redirect/route.ts +++ b/apps/hub/app/api/discord-redirect/route.ts @@ -62,12 +62,12 @@ export const GET = async (req: NextRequest) => { tokenType: authData.token_type, } as DiscordAccount; - const discord = await prisma.discordAccount.upsert({ + await prisma.discordAccount.upsert({ where: { discordId: discordUser.id }, update: discordObject, // Updates if found create: discordObject, // Creates if not found }); - return NextResponse.redirect(`${process.env.NEXTAUTH_URL}/settings/account`); + return NextResponse.redirect(`${process.env.NEXT_PUBLIC_HUB_URL}/settings`); } catch (error: any) { console.error(error); return NextResponse.json(