mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed members list update on switch
no issue - Members list updates on screen switch
This commit is contained in:
parent
a9b33338c4
commit
89e3303dad
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import Controller from '@ember/controller';
|
||||
import moment from 'moment';
|
||||
import {computed} from '@ember/object';
|
||||
import {inject as service} from '@ember/service';
|
||||
import {task} from 'ember-concurrency';
|
||||
|
@ -41,7 +42,7 @@ export default Controller.extend({
|
|||
// fetch any records modified since last fetch
|
||||
results = yield this.store.query('member', {
|
||||
limit: 'all',
|
||||
filter: `updated_at:>='${this._lastFetchDate.toISOString()}'`
|
||||
filter: `updated_at:>='${moment.utc(this._lastFetchDate).format('YYYY-MM-DD HH:mm:ss')}'`
|
||||
});
|
||||
} else {
|
||||
// fetch all records
|
||||
|
|
Loading…
Add table
Reference in a new issue