chagned redirect after discord authentikation

This commit is contained in:
PxlLoewe
2025-06-05 01:38:18 -07:00
parent fd9132a9d1
commit 49056a7068

View File

@@ -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(