mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-29 10:17:30 +08:00
not recording uids for now
This commit is contained in:
parent
508c289c92
commit
95b91f1d70
1 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue