Cfg: Deduplicate DefaultOrgID code (#93588)

Cfg: Expose DefaultOrgID function
This commit is contained in:
Gabriel MABILLE
2024-09-23 16:50:11 +02:00
committed by GitHub
parent d38e2feab9
commit 7714b65f32
6 changed files with 14 additions and 31 deletions

View File

@@ -40,7 +40,7 @@ func ProvideExtSvcAccountsService(acSvc ac.Service, cfg *setting.Cfg, bus bus.Bu
logger := log.New("serviceauth.extsvcaccounts")
esa := &ExtSvcAccountsService{
acSvc: acSvc,
defaultOrgID: extsvcauth.DefaultOrgID(cfg),
defaultOrgID: cfg.DefaultOrgID(),
logger: logger,
saSvc: saSvc,
features: features,