We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 665f7c9 commit 9ebd91cCopy full SHA for 9ebd91c
1 file changed
docs/v3/management/overview.mdx
@@ -168,13 +168,13 @@ You can use `for await … of` syntax to iterate through items across all pages:
168
import { runs } from "@trigger.dev/sdk/v3";
169
170
async function fetchAllRuns() {
171
- const runs = [];
+ const allRuns = [];
172
173
for await (const run of runs.list({ limit: 10 })) {
174
- runs.push(run);
+ allRuns.push(run);
175
}
176
177
- return runs;
+ return allRuns;
178
179
```
180
0 commit comments