mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 19:34:19 +00:00
Fix db.Ping() call
This commit is contained in:
parent
dad79adfd2
commit
11de25237d
1 changed files with 1 additions and 1 deletions
2
app.go
2
app.go
|
@ -414,7 +414,7 @@ func Serve() {
|
|||
defer shutdown(app)
|
||||
|
||||
// Test database connection
|
||||
err = db.Ping()
|
||||
err = app.db.Ping()
|
||||
if err != nil {
|
||||
log.Error("Database ping failed: %s", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue