mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-25 15:24:03 +08:00
logging auto ban event
This commit is contained in:
parent
e2b40a3f51
commit
71bba2581c
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ import {
|
|||
UpdateResult,
|
||||
WithId,
|
||||
} from "mongodb";
|
||||
import Logger from "../utils/logger";
|
||||
|
||||
const SECONDS_PER_HOUR = 3600;
|
||||
|
||||
|
@ -636,4 +637,5 @@ export async function recordAutoBanEvent(
|
|||
}
|
||||
|
||||
await getUsersCollection().updateOne({ uid }, { $set: updateObj });
|
||||
Logger.logToDb("user_auto_banned", { autoBanTimestamps }, uid);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue