mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:52:50 +08:00
Add missing parentheses to moment()
This commit is contained in:
parent
c27d5dc2bd
commit
d5c7e6b5f4
|
@ -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
Block a user