summary refs log tree commit diff
path: root/api/src/util/Instance.ts
diff options
context:
space:
mode:
authorHayden Young <hi@hbjy.dev>2021-10-15 09:42:31 +0000
committerGitHub <noreply@github.com>2021-10-15 09:42:31 +0000
commit892459a93879f9820f3672dece66f4ebdfc8701d (patch)
treeea2d14a706eb6e2e455ac23fe43e7343dee3f6be /api/src/util/Instance.ts
parentfix: don't set location by default (diff)
parent:bug: fix migration + autojoin (diff)
downloadserver-892459a93879f9820f3672dece66f4ebdfc8701d.tar.xz
chore: merge master into cdn-s3
Diffstat (limited to 'api/src/util/Instance.ts')
-rw-r--r--api/src/util/Instance.ts2
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({});