From 95b91f1d701819e134a8896c9ddc8407471f3f20 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 29 Oct 2022 14:31:36 +0200 Subject: [PATCH] not recording uids for now --- backend/src/middlewares/auth.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/middlewares/auth.ts b/backend/src/middlewares/auth.ts index 44843208b..290a2421c 100644 --- a/backend/src/middlewares/auth.ts +++ b/backend/src/middlewares/auth.ts @@ -9,7 +9,7 @@ import { incrementAuth, recordAuthTime, recordRequestCountry, - recordRequestForUid, + // recordRequestForUid, } from "../utils/prometheus"; import { performance } from "perf_hooks"; @@ -95,9 +95,9 @@ function authenticateRequest(authOptions = DEFAULT_OPTIONS): Handler { recordRequestCountry(country, req as MonkeyTypes.Request); } - if (req.method !== "OPTIONS" && req?.ctx?.decodedToken?.uid) { - recordRequestForUid(req.ctx.decodedToken.uid); - } + // if (req.method !== "OPTIONS" && req?.ctx?.decodedToken?.uid) { + // recordRequestForUid(req.ctx.decodedToken.uid); + // } next(); };