We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96ae146 commit 18f4e80Copy full SHA for 18f4e80
2 files changed
src/server/auth/providers/discord.ts
@@ -81,6 +81,7 @@ export async function linkProfile(
81
{
82
method: "PUT",
83
headers: {
84
+ Accept: "application/json",
85
Authorization: `Bot ${env.DISCORD_TOKEN}`,
86
"Content-Type": "application/json",
87
},
@@ -90,7 +91,7 @@ export async function linkProfile(
90
91
roles: [],
92
}),
93
- ).then((res) => res.json());
94
+ );
95
96
// Insert Discord profile and access tokens, and link to user
97
await db.transaction(async (tx) => {
src/server/auth/providers/github.ts
@@ -88,7 +88,7 @@ export async function linkProfile(
88
body: JSON.stringify({
89
invitee_id: profile.id,
role: "direct_member",
- team_ids: [],
+ team_ids: ["T_kwDOCgbiAM4A2I_4"],
}).then((res) => res.json());
0 commit comments