Add get DB method to store (#2650)

This commit is contained in:
pascal-fischer 2024-09-25 18:22:27 +02:00 committed by GitHub
parent b51d75204b
commit 1e4a0f77e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1024,3 +1024,7 @@ func (s *SqlStore) withTx(tx *gorm.DB) Store {
db: tx,
}
}
func (s *SqlStore) GetDB() *gorm.DB {
return s.db
}