remove stats
This commit is contained in:
parent
1722b9f763
commit
d330ae315f
1 changed files with 1 additions and 6 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue