@@ -23,7 +23,7 @@ type Module network.Module[module]
2323type module struct {
2424 Context context.Context
2525 Env * config.Env
26- Db postgres.Database
26+ DB postgres.Database
2727 Store redis.Store
2828 UserService user.Service
2929 AuthService auth.Service
@@ -39,10 +39,10 @@ func (m *module) Controllers() []network.Controller {
3939 auth .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), m .AuthService ),
4040 user .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), m .UserService ),
4141 blog .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), m .BlogService ),
42- author .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), author .NewService (m .Db , m .BlogService )),
43- editor .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), editor .NewService (m .Db , m .UserService )),
44- blogs .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), blogs .NewService (m .Db , m .Store )),
45- contact .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), contact .NewService (m .Db )),
42+ author .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), author .NewService (m .DB , m .BlogService )),
43+ editor .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), editor .NewService (m .DB , m .UserService )),
44+ blogs .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), blogs .NewService (m .DB , m .Store )),
45+ contact .NewController (m .AuthenticationProvider (), m .AuthorizationProvider (), contact .NewService (m .DB )),
4646 }
4747}
4848
@@ -70,7 +70,7 @@ func NewModule(context context.Context, env *config.Env, db postgres.Database, s
7070 return & module {
7171 Context : context ,
7272 Env : env ,
73- Db : db ,
73+ DB : db ,
7474 Store : store ,
7575 UserService : userService ,
7676 AuthService : authService ,
0 commit comments