Skip to content

Commit

Permalink
fix: usage snippet generation must be authorized using the same API k…
Browse files Browse the repository at this point in the history
…ey (#1075)
  • Loading branch information
ThomasRooney authored Nov 7, 2024
1 parent 9dd2539 commit c777a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/usagegen/usagegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func Generate(ctx context.Context, customerID, lang, schemaPath, header, token,
return err
}

if errs := g.Generate(context.Background(), schema, schemaPath, lang, configPath, isRemote, false); len(errs) > 0 {
if errs := g.Generate(ctx, schema, schemaPath, lang, configPath, isRemote, false); len(errs) > 0 {
for _, err := range errs {
l.Error("", zap.Error(err))
}
Expand Down

0 comments on commit c777a93

Please sign in to comment.