From 9cdccbe7f0c92abae5e1fd8ea43c9384eec145d9 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 12 Oct 2021 21:19:37 -0400 Subject: [PATCH] Fix user counter not working --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index d40c558..974805e 100644 --- a/src/app.ts +++ b/src/app.ts @@ -56,7 +56,7 @@ export function createServer(callback: () => void): Server { router.use("/api/", apiCspMiddleware); router.use(express.json()); - if (config.userCounterURL) app.use(userCounter); + if (config.userCounterURL) router.use(userCounter); // Setup pretty JSON if (config.mode === "development") app.set("json spaces", 2);