Rename GetDb() to Db() in comments, see #50
This commit is contained in:
parent
40fae6a28f
commit
c639a81c90
2 changed files with 2 additions and 2 deletions
|
@ -426,7 +426,7 @@ func (c *Config) GetPublicBuildPath() string {
|
||||||
return c.GetPublicPath() + "/build"
|
return c.GetPublicPath() + "/build"
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDb returns the db connection.
|
// Db returns the db connection.
|
||||||
func (c *Config) Db() *gorm.DB {
|
func (c *Config) Db() *gorm.DB {
|
||||||
if c.db == nil {
|
if c.db == nil {
|
||||||
c.connectToDatabase()
|
c.connectToDatabase()
|
||||||
|
|
|
@ -283,7 +283,7 @@ func (c *Config) GetPublicBuildPath() string {
|
||||||
return c.GetPublicPath() + "/build"
|
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 {
|
func (c *Config) Db() *gorm.DB {
|
||||||
if c.db == nil {
|
if c.db == nil {
|
||||||
c.connectToDatabase()
|
c.connectToDatabase()
|
||||||
|
|
Loading…
Reference in a new issue