remove stats

This commit is contained in:
Jonny_Bro (Nikita) 2023-06-19 14:10:17 +05:00
parent 1722b9f763
commit d330ae315f

View file

@ -1,6 +1,5 @@
const router = require("express").Router() const router = require("express").Router()
const fetch = require("node-fetch") const fetch = require("node-fetch")
const DBDStats = require("../ExternalStatistics/index")
const DiscordOauth2 = require("discord-oauth2") const DiscordOauth2 = require("discord-oauth2")
const oauth = new DiscordOauth2() const oauth = new DiscordOauth2()
@ -184,13 +183,9 @@ module.exports = (app, config, themeConfig) => {
*/ */
try { try {
DBDStats.registerUser(OAuth2UserResponse.id)
req.DBDEvents.emit("userLoggedIn", OAuth2UserResponse) req.DBDEvents.emit("userLoggedIn", OAuth2UserResponse)
} catch (err) { } catch (err) {
req.config.reportError( req.config.reportError("Discord.js Route - Register and DBDEvents emit userLoggedIn (line 170)", err)
"Discord.js Route - DBDStats register and DBDEvent emit userLoggedIn (line 170)",
err
)
req.session.discordAuthStatus = { req.session.discordAuthStatus = {
loading: false, loading: false,
success: false, success: false,