mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
Remove incorrect "db.DefaultContext" usages (#35366)
This commit is contained in:
@@ -23,7 +23,7 @@ var fixturesLoader FixturesLoader
|
||||
|
||||
// GetXORMEngine gets the XORM engine
|
||||
func GetXORMEngine() (x *xorm.Engine) {
|
||||
return db.GetEngine(db.DefaultContext).(*xorm.Engine)
|
||||
return db.GetXORMEngineForTesting()
|
||||
}
|
||||
|
||||
func loadFixtureResetSeqPgsql(e *xorm.Engine) error {
|
||||
|
Reference in New Issue
Block a user