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

Commit

Permalink
Merge pull request #645 from JupiterOne/INT-10621-2
Browse files Browse the repository at this point in the history
INT-10621: expose PermissionErrorHandlingOptions to iterateApi
  • Loading branch information
gastonyelmini authored Mar 28, 2024
2 parents 290a381 + e450f6d commit 8456f93
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 8456f93

Please sign in to comment.