1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Fix db engine (#32351)

Fix #32349
This commit is contained in:
wxiaoguang
2024-10-28 06:48:07 +08:00
committed by GitHub
parent d70af38447
commit a920fcfd91
10 changed files with 172 additions and 74 deletions

View File

@@ -11,7 +11,7 @@ import (
)
func getXORMEngine() *xorm.Engine {
return db.DefaultContext.(*db.Context).Engine().(*xorm.Engine)
return db.GetEngine(db.DefaultContext).(*xorm.Engine)
}
// CheckDatabaseConnection checks the database connection