Skip to content

Commit

Permalink
refactor: Update filter function to include additional cursor values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ukrocks007 committed Jul 17, 2024
1 parent 0eff18f commit 57cf12b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/models/event/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ export default async function filter(opts: Options): Promise<Result> {
wheres.push(
`(((doc -> 'canonical_time')::text::bigint < ${nextParam()}) OR ((doc -> 'canonical_time')::text::bigint = ${nextParam()} AND id < ${nextParam()}))`
);
vals.push(opts.cursor[0], opts.cursor[0], opts.cursor[1]);
} else {
wheres.push(
`(((doc -> 'canonical_time')::text::bigint > ${nextParam()}) OR ((doc -> 'canonical_time')::text::bigint = ${nextParam()} AND id > ${nextParam()}))`
);
vals.push(opts.cursor[0]);
}
vals.push(opts.cursor[0], opts.cursor[0], opts.cursor[1]);
}

const q = `
Expand Down

0 comments on commit 57cf12b

Please sign in to comment.