0
Fork 0
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:
Rish 2019-04-09 20:46:47 +05:30
parent a9b33338c4
commit 89e3303dad

View file

@ -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