reload cache on link
This commit is contained in:
parent
71a5bd3f12
commit
fbd529b99a
2
index.ts
2
index.ts
|
@ -124,6 +124,8 @@ receiver.router.get("/osu/callback", async (req, res) => {
|
||||||
|
|
||||||
await sql`INSERT INTO links VALUES (${user.id}, ${userId})`
|
await sql`INSERT INTO links VALUES (${user.id}, ${userId})`
|
||||||
|
|
||||||
|
getLeaderboard();
|
||||||
|
|
||||||
return res.send(`Your osu! account (${user.id}) has been successfully linked to your Slack account (${userId})!`)
|
return res.send(`Your osu! account (${user.id}) has been successfully linked to your Slack account (${userId})!`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue