Hello,
i have a server/server.js method to fill a settings collection with one document.
Meteor.startup(function () {
Settings.remove({});
Settings.insert({
…
defaultLocation: false
});
});
Meteor.publish(“settings”, function () {
return Settings.find();
});
When the collection has size 1 it runs perfectly, but when I do “meteor reset” and restart the app, sometimes (not always), my collection is only inserted on one side…
meteor:PRIMARY> db.settings.find()
does return the dataset, but the mongoInspector (and so my app) does not see it (settings document).
Is there any mechanism to force this upload to db/mongoDB or is this a bug?
Thanks
java99