Reorganize & Add DB Bootstrapping
This commit is contained in:
@@ -13,9 +13,9 @@ type ImaginiContext struct {
|
||||
|
||||
func NewImaginiContext() *ImaginiContext {
|
||||
c := config.NewConfig()
|
||||
gormDB := query.NewDB(c)
|
||||
db := query.NewDB(c)
|
||||
return &ImaginiContext{
|
||||
DB: gormDB,
|
||||
DB: db,
|
||||
Config: c,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user