Fixed variable name

This commit is contained in:
Gerhard Gruber 2021-09-15 16:46:35 +02:00
parent f8938253ce
commit 0e9bb664cd

View File

@ -523,7 +523,7 @@ func (s *DB) Rollback() *DB {
}
// WrapInTx wraps a method in a transaction
func (s *DB) WrapInTx(f func(tx *gorm.DB) (error)) error {
func (s *DB) WrapInTx(f func(tx *DB) (error)) error {
tx := s.Begin()
if err := f(tx); err != nil {
tx.Rollback()