Skip to content

Commit 18f4e80

Browse files
committed
i can read the docs
1 parent 96ae146 commit 18f4e80

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/server/auth/providers/discord.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export async function linkProfile(
8181
{
8282
method: "PUT",
8383
headers: {
84+
Accept: "application/json",
8485
Authorization: `Bot ${env.DISCORD_TOKEN}`,
8586
"Content-Type": "application/json",
8687
},
@@ -90,7 +91,7 @@ export async function linkProfile(
9091
roles: [],
9192
}),
9293
},
93-
).then((res) => res.json());
94+
);
9495

9596
// Insert Discord profile and access tokens, and link to user
9697
await db.transaction(async (tx) => {

src/server/auth/providers/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export async function linkProfile(
8888
body: JSON.stringify({
8989
invitee_id: profile.id,
9090
role: "direct_member",
91-
team_ids: [],
91+
team_ids: ["T_kwDOCgbiAM4A2I_4"],
9292
}),
9393
}).then((res) => res.json());
9494

0 commit comments

Comments
 (0)