Skip to content

Commit

Permalink
fix: Fixing parameter order for auto update
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Oct 13, 2021
1 parent 35e532c commit 4601ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/notifier/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (a App) handleKetchupNotification(ketchup model.Ketchup, version string) {
log := logger.WithField("repository", ketchup.Repository.ID).WithField("user", ketchup.User.ID).WithField("pattern", ketchup.Pattern)

log.Info("Auto-updating ketchup to %s", version)
if err := a.ketchupService.UpdateVersion(context.Background(), ketchup.Repository.ID, ketchup.User.ID, ketchup.Pattern, version); err != nil {
if err := a.ketchupService.UpdateVersion(context.Background(), ketchup.User.ID, ketchup.Repository.ID, ketchup.Pattern, version); err != nil {
logger.Error("unable to update ketchup user=%d repository=%d: %s", ketchup.User.ID, ketchup.Repository.ID, err)
}
}
Expand Down

0 comments on commit 4601ac7

Please sign in to comment.