Skip to content

Commit 24531bf

Browse files
committed
update BulkUpdateRendering method signature
1 parent ebf4243 commit 24531bf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

internal/auth0/branding_prompt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type PromptAPI interface {
5252
// BulkUpdateRendering updates multiple rendering settings in a single operation.
5353
//
5454
// See: https://auth0.com/docs/api/management/v2/prompts/patch-bulk-rendering
55-
BulkUpdateRendering(ctx context.Context, c *management.PromptRenderingUpdateRequest, opts ...management.RequestOption) error
55+
BulkUpdateRendering(ctx context.Context, c *management.PromptRenderingBulkUpdate, opts ...management.RequestOption) error
5656

5757
// ListRendering retrieves the settings for the ACUL.
5858
//

internal/auth0/mock/branding_prompt_mock.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cli/acul_dev.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func runNormalMode(cli *cli, projectDir, port string) error {
166166

167167
// Show output only in debug mode.
168168
if cli.debug {
169-
fmt.Println("\n🔄 Executing:", ansi.Cyan(fmt.Sprintf("npm run dev")))
169+
fmt.Println("\n🔄 Executing:", ansi.Cyan("npm run dev"))
170170
cmd.Stdout = os.Stdout
171171
cmd.Stderr = os.Stderr
172172
}
@@ -529,7 +529,7 @@ func applyPromptRenderings(ctx context.Context, cli *cli, screenTagMap map[strin
529529
return fmt.Errorf("no renderings to apply")
530530
}
531531

532-
// Snapshot originals
532+
// Snapshot originals.
533533
existing, err := cli.api.Prompt.ListRendering(ctx)
534534
if err != nil {
535535
return fmt.Errorf("failed to fetch current renderings: %w", err)
@@ -550,10 +550,10 @@ func applyPromptRenderings(ctx context.Context, cli *cli, screenTagMap map[strin
550550
const maxBatch = 20
551551
doBatchedPatch := func(list []*management.PromptRendering) error {
552552
return cli.api.Prompt.BulkUpdateRendering(ctx,
553-
&management.PromptRenderingUpdateRequest{PromptRenderings: list})
553+
&management.PromptRenderingBulkUpdate{PromptRenderings: list})
554554
}
555555

556-
// --- Batching loop with rollback awareness ---
556+
// --- Batching loop with rollback awareness ---.
557557
for i := 0; i < len(updates); i += maxBatch {
558558
end := i + maxBatch
559559
if end > len(updates) {

0 commit comments

Comments
 (0)