Skip to content

Commit

Permalink
Removed hard coded dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott O'Brien committed May 28, 2014
1 parent 0ad61b3 commit 3d61fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var accessCheck = function(handle) {

Meteor.publish("monthly_totals_for_year", function() {
if( accessCheck(this) ) return;
return MonthlyTotals.yearlyTotals(2014);
return MonthlyTotals.yearlyTotals(moment().year());
});

Meteor.publish("this_weeks_usage", function() {
Expand Down Expand Up @@ -59,7 +59,7 @@ Meteor.publish('weekly_top_users', function() {

Meteor.publish("user_monthly_totals_for_year", function(username) {
if( accessCheck(this) ) return;
return UserMonthlyTotals.yearlyTotals(username, 2014);
return UserMonthlyTotals.yearlyTotals(username, moment().year());
});

Meteor.publish("user_this_weeks_usage", function(username) {
Expand Down

0 comments on commit 3d61fa6

Please sign in to comment.