Skip to content

Commit

Permalink
fix: rename addons package update method
Browse files Browse the repository at this point in the history
  • Loading branch information
SCedricThomas committed Jul 3, 2023
1 parent f1c7052 commit 2b7b444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type UpdateAddonConfigOpts struct {
MaintenanceWindowHour *int
}

func UpdateAddonConfig(ctx context.Context, app, addon string, options UpdateAddonConfigOpts) error {
func UpdateConfig(ctx context.Context, app, addon string, options UpdateAddonConfigOpts) error {
weekdayNameToWeekdayOrderMap := map[string]time.Weekday{
strings.ToLower(time.Sunday.String()): time.Sunday,
strings.ToLower(time.Monday.String()): time.Monday,
Expand Down
2 changes: 1 addition & 1 deletion cmd/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ var (
errorQuitWithHelpMessage(errors.New(ctx, "cannot update your addon without a specified option"), c, "addons-config")
}

err := addons.UpdateAddonConfig(ctx, currentApp, currentAddon, config)
err := addons.UpdateConfig(ctx, currentApp, currentAddon, config)
if err != nil {
errorQuit(err)
}
Expand Down

0 comments on commit 2b7b444

Please sign in to comment.