fix: use ctx

This commit is contained in:
Jason Song 2022-12-12 11:05:22 +08:00
parent dbef504584
commit 7a34d37aad
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5

View File

@ -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
}