diff --git a/website/src/models/group.js b/website/src/models/group.js index 718df557c9..1bbb0145a5 100644 --- a/website/src/models/group.js +++ b/website/src/models/group.js @@ -515,7 +515,7 @@ export let model = mongoose.model('Group', schema); // initialize tavern if !exists (fresh installs) // do not run when testing as it's handled by the tests and can easily cause a race condition -if (nconf.get('IS_TEST')) { +if (!nconf.get('IS_TEST')) { model.count({_id: 'habitrpg'}, (err, ct) => { if (err) throw err; if (ct > 0) return;