Skip to content

Commit

Permalink
Update endpoints.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Jul 5, 2024
1 parent e7da16c commit f0ffbd8
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions logger/src/modules/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0ffbd8

Please sign in to comment.