Skip to content

Commit

Permalink
Use the objecttype.Service interface in the query service (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkajla12 authored Sep 26, 2023
1 parent 16479d5 commit 5f023af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/authz/query/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ var ErrInvalidQuery = errors.New("invalid query")

type QueryService struct {
baseSvc.BaseService
objectTypeSvc *objecttype.ObjectTypeService
objectTypeSvc objecttype.Service
warrantSvc *warrant.WarrantService
objectSvc *object.ObjectService
}

func NewService(env service.Env, objectTypeSvc *objecttype.ObjectTypeService, warrantSvc *warrant.WarrantService, objectSvc *object.ObjectService) QueryService {
func NewService(env service.Env, objectTypeSvc objecttype.Service, warrantSvc *warrant.WarrantService, objectSvc *object.ObjectService) QueryService {
return QueryService{
BaseService: baseSvc.NewBaseService(env),
objectTypeSvc: objectTypeSvc,
Expand Down

0 comments on commit 5f023af

Please sign in to comment.