Permalink
Browse files

Make factsByPackage data available to the server environment

  • Loading branch information...
1 parent 06267da commit e356c23fdbc114e3662e1938c4d91494bf8ad368 @timhaines timhaines committed with glasser Feb 24, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 packages/facts/facts.js
@@ -19,6 +19,9 @@ if (Meteor.isServer) {
var factsByPackage = {};
var activeSubscriptions = [];
+ // Make factsByPackage data available to the server environment
+ Facts._factsByPackage = factsByPackage;
+
Facts.incrementServerFact = function (pkg, fact, increment) {
if (!_.has(factsByPackage, pkg)) {
factsByPackage[pkg] = {};

0 comments on commit e356c23

Please sign in to comment.