Rework top level services injection of business level services
Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
@@ -27,6 +27,7 @@ type TenantService struct {
|
||||
baseURL string
|
||||
encryptionKey cipher.EncryptionKey
|
||||
tokenSecret string
|
||||
SlackMessages *SlackMessageService
|
||||
}
|
||||
|
||||
func NewService(
|
||||
@@ -56,6 +57,7 @@ func (s *Service) WithTenant(tenantID gid.TenantID) *TenantService {
|
||||
encryptionKey: s.encryptionKey,
|
||||
tokenSecret: s.tokenSecret,
|
||||
}
|
||||
tenantService.SlackMessages = &SlackMessageService{svc: tenantService}
|
||||
|
||||
return tenantService
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user