Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Kachit committed May 10, 2022
1 parent 9979fc3 commit 2a1fbef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func (ss *SeedersStack) getDb() *gorm.DB {

func (ss *SeedersStack) beginTransaction(db *gorm.DB) *gorm.DB {
if db.SkipDefaultTransaction == true {
db.Begin()
tx := db.Begin()
db = tx
}
return db
}
Expand Down

0 comments on commit 2a1fbef

Please sign in to comment.