Rename GetDb() to Db() in comments, see #50
This commit is contained in:
parent
40fae6a28f
commit
c639a81c90
|
@ -426,7 +426,7 @@ func (c *Config) GetPublicBuildPath() string {
|
|||
return c.GetPublicPath() + "/build"
|
||||
}
|
||||
|
||||
// GetDb returns the db connection.
|
||||
// Db returns the db connection.
|
||||
func (c *Config) Db() *gorm.DB {
|
||||
if c.db == nil {
|
||||
c.connectToDatabase()
|
||||
|
|
|
@ -283,7 +283,7 @@ func (c *Config) GetPublicBuildPath() string {
|
|||
return c.GetPublicPath() + "/build"
|
||||
}
|
||||
|
||||
// GetDb gets a db connection. If it already is estabilished it will return that.
|
||||
// Db gets a db connection. If it already is estabilished it will return that.
|
||||
func (c *Config) Db() *gorm.DB {
|
||||
if c.db == nil {
|
||||
c.connectToDatabase()
|
||||
|
|
Loading…
Reference in New Issue
Block a user