Skip to content

Commit dc2a868

Browse files
committed
Adjusting database for 1.2.0
1 parent 4cf6781 commit dc2a868

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

modules/database/module.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ func NewModule() *Module {
2828
}
2929

3030
// RegisterConfig registers database configuration
31-
func (m *Module) RegisterConfig(app modular.Application) {
31+
func (m *Module) RegisterConfig(app modular.Application) error {
3232
m.config = &Config{
3333
Connections: make(map[string]ConnectionConfig),
3434
Default: "default",
3535
}
3636
app.RegisterConfigSection("database", modular.NewStdConfigProvider(m.config))
37+
38+
return nil
3739
}
3840

3941
// Init initializes the database connections
@@ -104,11 +106,6 @@ func (m *Module) Name() string {
104106
return "database"
105107
}
106108

107-
// Dependencies returns module dependencies
108-
func (m *Module) Dependencies() []string {
109-
return nil
110-
}
111-
112109
// ProvidesServices returns services provided by this module
113110
func (m *Module) ProvidesServices() []modular.ServiceProvider {
114111
providers := []modular.ServiceProvider{

0 commit comments

Comments
 (0)