diff --git a/modules/notification/actions/helper.go b/modules/notification/actions/helper.go index 7d8b1f728c..a2516af46e 100644 --- a/modules/notification/actions/helper.go +++ b/modules/notification/actions/helper.go @@ -103,7 +103,7 @@ func notify(ctx context.Context, input *notifyInput) error { } if err := input.Repo.LoadUnits(db.DefaultContext); err != nil { return fmt.Errorf("repo.LoadUnits: %w", err) - } else if !input.Repo.UnitEnabled(unit.TypeActions) { + } else if !input.Repo.UnitEnabled(ctx, unit.TypeActions) { return nil }