mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-22 22:08:04 +00:00
🐛 fix migration + autojoin
This commit is contained in:
1 parent
ec0e2a804c
commit
4e6ffcbc4f
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