mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Switched members event fetcher to use data.created_at
as cursor
refs https://github.com/TryGhost/Team/issues/1277 - updated to match API's expected filter format
This commit is contained in:
parent
05b1d85398
commit
5da8ee3c76
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ export default class MembersEventsFetcher extends Resource {
|
|||
|
||||
async setup() {
|
||||
this.cursor = moment.utc().format('YYYY-MM-DD HH:mm:ss');
|
||||
let filter = `created_at:<'${this.cursor}'`;
|
||||
let filter = `data.created_at:<'${this.cursor}'`;
|
||||
|
||||
if (this.args.named.filter) {
|
||||
filter += `+${this.args.named.filter}`;
|
||||
|
@ -58,7 +58,7 @@ export default class MembersEventsFetcher extends Resource {
|
|||
}
|
||||
|
||||
this.cursor = cursor;
|
||||
let filter = `created_at:<'${this.cursor}'`;
|
||||
let filter = `data.created_at:<'${this.cursor}'`;
|
||||
|
||||
if (this.args.named.filter) {
|
||||
filter += `+${this.args.named.filter}`;
|
||||
|
|
Loading…
Add table
Reference in a new issue