Merge pull request #1011 from chrishunt/add-parens
Add missing parentheses to moment()
This commit is contained in:
commit
45cff9c674
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue