This commit is contained in:
withchao
2023-01-28 18:46:42 +08:00
parent 891e631b91
commit 601fac7a04
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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]
}