diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-14 00:32:15 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-14 00:32:15 +0200 |
commit | 8257e2631ae5c4237d08b48b365ce7f367de74c6 (patch) | |
tree | df313ee16409d709c267c46c25f7bfb01fb67620 /api/src | |
parent | :pencil: improve logging (diff) | |
download | server-8257e2631ae5c4237d08b48b365ce7f367de74c6.tar.xz |
:bug: fix migration + autojoin
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/util/Instance.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/util/Instance.ts b/api/src/util/Instance.ts index a7b3205a..d1d9e1ab 100644 --- a/api/src/util/Instance.ts +++ b/api/src/util/Instance.ts @@ -8,7 +8,7 @@ export async function initInstance() { // TODO: check if any current user is not part of autoJoinGuilds const { autoJoin } = Config.get().guild; - if (autoJoin.enabled && autoJoin.guilds?.length) { + if (autoJoin.enabled && !autoJoin.guilds?.length) { let guild = await Guild.findOne({}); if (!guild) guild = await Guild.createGuild({}); |