From f0ffbd8ab812ae5955b4a6cca19cdd8ffabc7b99 Mon Sep 17 00:00:00 2001 From: Alexejhero <32238504+Alexejhero@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:33:18 +0300 Subject: [PATCH] Update endpoints.ts --- logger/src/modules/endpoints.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/logger/src/modules/endpoints.ts b/logger/src/modules/endpoints.ts index 5b168a0..c67e88f 100644 --- a/logger/src/modules/endpoints.ts +++ b/logger/src/modules/endpoints.ts @@ -24,24 +24,6 @@ app.post("/log", async (req, res) => { res.status(403).send("User is banned."); return; } - - /*if (userId != logMessage.userIdInsecure) { - const warningMessage: LogMessage = { - transactionToken: logMessage.transactionToken, - userIdInsecure: userId, - important: true, - fields: [ - { - header: "Someone tried to bamboozle the logger user id check", - content: "Received user id: " + logMessage.userIdInsecure, - }, - ], - }; - logToDiscord(warningMessage, true); - logToDatabase(warningMessage, true).then(); - res.status(403).send("Invalid user id."); - return; - }*/ } await logToDatabase(logMessage, isBackendRequest);