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

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

View File

@ -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({});
}
}
}
});

View File

@ -17,6 +17,7 @@ Package.onUse(function (api) {
api.use('silentcicero:jszip');
api.use('aldeed:simple-schema');
api.use('accounts-base');
api.use('mrt:moment');
// Note: MomentJS appears to be required for Bootstrap3 Datepicker, but not a dependency for some reason
api.use('momentjs:moment');