Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

INT-10621: expose PermissionErrorHandlingOptions to iterateApi #645

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/google-cloud/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export class Client {
callback: (data: T) => Promise<void>,
stepId: string,
suggestedPermissions: string[],
options?: PermissionErrorHandlingOptions,
) {
return this.forEachPage(async (nextPageToken) => {
const result = await this.withErrorHandling(
Expand All @@ -128,6 +129,7 @@ export class Client {
stepId,
suggestedPermissions,
},
options,
);

if (result) {
Expand Down
Loading