@@ -92,6 +92,7 @@ import (
9292 "github.com/go-webauthn/webauthn/webauthn"
9393 "github.com/raystack/frontier/config"
9494 "github.com/raystack/frontier/core/group"
95+ "github.com/raystack/frontier/core/membership"
9596 "github.com/raystack/frontier/core/namespace"
9697 "github.com/raystack/frontier/core/organization"
9798 "github.com/raystack/frontier/core/policy"
@@ -420,6 +421,8 @@ func buildAPIDependencies(
420421 organizationService := organization .NewService (organizationRepository , relationService , userService ,
421422 authnService , policyService , preferenceService , auditRecordRepository , roleService )
422423
424+ membershipService := membership .NewService (logger , policyService , relationService , roleService , organizationService , userService , auditRecordRepository )
425+
423426 orgKycRepository := postgres .NewOrgKycRepository (dbc )
424427 orgKycService := kyc .NewService (orgKycRepository )
425428
@@ -620,6 +623,7 @@ func buildAPIDependencies(
620623 UserProjectsService : userProjectsService ,
621624 AuditRecordService : auditRecordService ,
622625 UserPATService : userPATService ,
626+ MembershipService : membershipService ,
623627 }
624628 return dependencies , nil
625629}
0 commit comments