Fix Username already exists issue [403]

This commit is contained in:
Paul Molluzzo 2016-02-29 22:13:19 -05:00
parent 5b8c8d92a9
commit bc0d82de1a

View file

@ -108,7 +108,7 @@ Meteor.methods({
Meteor.startup(function () {
// insert dummy content only if createDummyContent hasn't happened and there aren't any posts in the db
if (!Events.findOne({name: 'createDummyContent'}) && !Posts.find().count()) {
if (!Users.find().count() && !Events.findOne({name: 'createDummyContent'}) && !Posts.find().count()) {
createDummyUsers();
createDummyPosts();
createDummyComments();