Skip to content

Commit 9c71d39

Browse files
fix(docs): add missing await to pagination example (#1190)
1 parent 2049a6f commit 9c71d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ for (const fineTuningJob of page.data) {
233233

234234
// Convenience methods are provided for manually paginating:
235235
while (page.hasNextPage()) {
236-
page = page.getNextPage();
236+
page = await page.getNextPage();
237237
// ...
238238
}
239239
```

0 commit comments

Comments
 (0)