mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-18 00:25:31 +00:00
🐛 fix migration + autojoin
This commit is contained in:
@@ -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