Skip to content

Commit

Permalink
Fix JS cursor-based pagination (#344)
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Sedgh <[email protected]>
  • Loading branch information
hinthornw and emilsedgh authored Jan 9, 2024
1 parent ed34564 commit b64d6ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,10 @@ export class Client {
limit,
};

for await (const runs of this._getCursorPaginatedList<Run>("/runs", body)) {
for await (const runs of this._getCursorPaginatedList<Run>(
"/runs/query",
body
)) {
yield* runs;
}
}
Expand Down

0 comments on commit b64d6ba

Please sign in to comment.