From 7a34d37aadfd95fcdddf0b7dc10f49c0ee28ce0a Mon Sep 17 00:00:00 2001 From: Jason Song Date: Mon, 12 Dec 2022 11:05:22 +0800 Subject: [PATCH] fix: use ctx --- modules/notification/actions/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }