Skip to content

Commit 9ebd91c

Browse files
authored
Fixed auto-pagination example
1 parent 665f7c9 commit 9ebd91c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/v3/management/overview.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ You can use `for await … of` syntax to iterate through items across all pages:
168168
import { runs } from "@trigger.dev/sdk/v3";
169169

170170
async function fetchAllRuns() {
171-
const runs = [];
171+
const allRuns = [];
172172

173173
for await (const run of runs.list({ limit: 10 })) {
174-
runs.push(run);
174+
allRuns.push(run);
175175
}
176176

177-
return runs;
177+
return allRuns;
178178
}
179179
```
180180

0 commit comments

Comments
 (0)