Merge pull request #1011 from chrishunt/add-parens

Add missing parentheses to moment()
This commit is contained in:
Robin Ward 2013-06-11 09:01:04 -07:00
commit 45cff9c674
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ Discourse.AdminDashboardRoute = Discourse.Route.extend({
});
}
if( !c.get('problemsFetchedAt') || moment.subtract('minute',c.problemsCheckMinutes).toDate() > c.get('problemsFetchedAt') ) {
if( !c.get('problemsFetchedAt') || moment().subtract('minute',c.problemsCheckMinutes).toDate() > c.get('problemsFetchedAt') ) {
c.set('problemsFetchedAt', new Date());
c.loadProblems();
}