From fbd529b99ac86b10a77d2d59657e6238a59df2f4 Mon Sep 17 00:00:00 2001 From: DaInfLoop Date: Sun, 30 Jun 2024 16:44:24 +0100 Subject: [PATCH] reload cache on link --- index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.ts b/index.ts index d1d3b3e..8741e15 100644 --- a/index.ts +++ b/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})!`) } })