From a49898a5c9e7498bce89ad0615ea28d911a03de1 Mon Sep 17 00:00:00 2001 From: TomDakan Date: Tue, 26 Sep 2023 14:52:20 -0700 Subject: [PATCH] removed extra curly brace Co-authored-by: Tymoteusz Boba --- server/modules/authentication/discord/authentication.js | 1 - 1 file changed, 1 deletion(-) diff --git a/server/modules/authentication/discord/authentication.js b/server/modules/authentication/discord/authentication.js index 354768e9..aea2a2a1 100644 --- a/server/modules/authentication/discord/authentication.js +++ b/server/modules/authentication/discord/authentication.js @@ -27,7 +27,6 @@ module.exports = { const { roles } = await discord.getGuildMember(accessToken, conf.guildId); if (authRoles.every(role => roles.includes(role)) throw new WIKI.Error.AuthLoginFailed() - } } else if (conf.guildId && !_.some(profile.guilds, { id: conf.guildId })) { throw new WIKI.Error.AuthLoginFailed() }