mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-06 01:55:58 +08:00
1
This commit is contained in:
@@ -87,7 +87,7 @@ func (w Writer) Printf(format string, args ...interface{}) {
|
||||
fmt.Printf(format, args...)
|
||||
}
|
||||
|
||||
func getDBConn(db *gorm.DB, tx ...*gorm.DB) *gorm.DB {
|
||||
func getDBConn(db *gorm.DB, tx []*gorm.DB) *gorm.DB {
|
||||
if len(tx) > 0 {
|
||||
return tx[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user