fix typo when creating tavern

This commit is contained in:
Matteo Pagliazzi
2016-01-30 16:04:38 +01:00
parent 0972d32d03
commit 69e24eafa3
+1 -1
View File
@@ -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;