From 89e122210e0255f1a6b99600c2164cb6c979655b Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 4 Dec 2022 19:54:44 -0500 Subject: [PATCH] Remove extra hash --- src/middleware/userCounter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/middleware/userCounter.ts b/src/middleware/userCounter.ts index 958f67e..433af8e 100644 --- a/src/middleware/userCounter.ts +++ b/src/middleware/userCounter.ts @@ -2,12 +2,11 @@ import axios from "axios"; import { Logger } from "../utils/logger"; import { config } from "../config"; import { getIP } from "../utils/getIP"; -import { getHash } from "../utils/getHash"; import { NextFunction, Request, Response } from "express"; export function userCounter(req: Request, res: Response, next: NextFunction): void { if (req.method !== "OPTIONS") { - axios.post(`${config.userCounterURL}/api/v1/addIP?hashedIP=${getHash(getIP(req), 1)}`) + axios.post(`${config.userCounterURL}/api/v1/addIP?hashedIP=${getIP(req)}`) .catch(() => Logger.debug(`Failing to connect to user counter at: ${config.userCounterURL}`)); }