mirror of
https://git.haroon.hackclub.app/haroon/osu-leaderboard.git
synced 2024-11-09 23:39:40 +00:00
reload cache on link
This commit is contained in:
parent
71a5bd3f12
commit
fbd529b99a
1 changed files with 2 additions and 0 deletions
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})`
|
||||
|
||||
getLeaderboard();
|
||||
|
||||
return res.send(`Your osu! account (${user.id}) has been successfully linked to your Slack account (${userId})!`)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue