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({});
}
}
}
});
+1
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');