mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 10:53:01 +00:00
🐛 fix migration + autojoin
This commit is contained in:
1 parent
90c5444324
commit
8257e2631a
2 files changed
+6
-3
No files matched your search
@@ -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({});
|
||||
|
||||
|
||||
Reference in new issue
Block a user