Fix db engine (#32351)

Fix #32349
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-10-27 18:48:07 -04:00
1 parent d70af38447
commit a920fcfd91
10 files changed
+172 -74

No files matched your search

+1 -1
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