From 69e24eafa3df58cf369a677472fa9a91d0c5bcec Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Sat, 30 Jan 2016 16:04:38 +0100 Subject: [PATCH] fix typo when creating tavern --- website/src/models/group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;