Add missing parentheses to moment()

This commit is contained in:
Chris Hunt 2013-06-11 08:46:14 -07:00
parent c27d5dc2bd
commit d5c7e6b5f4
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();
}