Skip to content

Commit

Permalink
re-add limit in js
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Dec 15, 2023
1 parent 592d868 commit cf468fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ interface ListRunsParams {
error?: boolean;
id?: string[];
limit?: number;
offset?: number;
query?: string;
filter?: string;
}
Expand Down Expand Up @@ -490,6 +489,7 @@ export class Client {
id,
query,
filter,
limit,
}: ListRunsParams): AsyncIterable<Run> {
let projectId_ = projectId;
if (projectName) {
Expand All @@ -509,6 +509,7 @@ export class Client {
start_time: startTime ? startTime.toISOString() : null,
error,
id,
limit,
};

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

0 comments on commit cf468fe

Please sign in to comment.