From e2c5459b95a8b59f29d9d3d23bb38827e0f26d85 Mon Sep 17 00:00:00 2001 From: DaInfLoop Date: Sun, 30 Jun 2024 16:45:48 +0100 Subject: [PATCH] fix ts errors --- index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 8741e15..0a5811d 100644 --- a/index.ts +++ b/index.ts @@ -28,7 +28,7 @@ const states = new Map(); app.command("/osu-link", async (ctx) => { await ctx.ack(); - const [exists = null] = await sql`SELECT osu_id FROM links WHERE slack_id = ${ctx.context.userId}`; + const [exists = null] = await sql`SELECT osu_id FROM links WHERE slack_id = ${ctx.context.userId!}`; if (exists) { return ctx.respond({ @@ -224,6 +224,7 @@ async function getLeaderboard(sortBy?: "osu" | "taiko" | "fruits" | "mania", asc } }).then(res => res.json()); + // @ts-ignore i can't be bothered to type this rn lb.push(...data.users.map(user => ({ username: user.username, id: user.id,