PWV-2: Added missing dependencies for Worklist package and prevents removal of server config collections...

This commit is contained in:
Emanuel F. Oliveira committed 2016-09-30 20:01:58 +00:00
1 parent ed86c14807
commit 337525c27d
2 files changed
+4 -1

No files matched your search

@@ -52,7 +52,9 @@ Meteor.startup(function() {
for (var property in global) {
var object = global[property];
if (object instanceof Meteor.Collection) {
object.remove({});
if (!(/^server|currentServer$/).test(object._name)) {
object.remove({});
}
}
}
});