mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-13 07:24:38 -04:00
Add missing parentheses to moment()
This commit is contained in:
parent
c27d5dc2bd
commit
d5c7e6b5f4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue