Skip to content

Commit

Permalink
Fix asyncIter in legacy-client
Browse files Browse the repository at this point in the history
Tested changes
  • Loading branch information
bryantpark04 committed Jul 15, 2024
1 parent 9846af1 commit 2a495bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/legacy-client/src/client/net/loadObjectsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export async function* loadObjectsIterator<
): AsyncIterableIterator<T> {
let pageToken: string | undefined = undefined;
do {
const result = await loadObjectsPage(
const result: Result<Page<T>, LoadObjectSetError> = await loadObjectsPage(
client,
objectApiName,
objectSetDefinition,
Expand All @@ -121,6 +121,7 @@ export async function* loadObjectsIterator<
{ pageToken },
);
if (result.type === "ok") {
pageToken = result.value.nextPageToken;
for (
const obj of result.value.data
) {
Expand Down

0 comments on commit 2a495bd

Please sign in to comment.