From 0e2c73d004d0daceea13d0cd421f81d7868c7407 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Sun, 20 Aug 2023 17:01:15 -0600 Subject: [PATCH] Oops! --- src/server/api/routers/vote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/routers/vote.ts b/src/server/api/routers/vote.ts index fa53e09..05326a7 100644 --- a/src/server/api/routers/vote.ts +++ b/src/server/api/routers/vote.ts @@ -54,7 +54,7 @@ export const voteRouter = createTRPCRouter({ }, }); - let success = upsertResult.rowCount > 0; + const success = upsertResult.rowCount > 0; if (success) { await invalidateCache(`kv_votecount`);