Skip to content

Commit

Permalink
fix: build condition with new session
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1v3r committed Jan 11, 2024
1 parent 16a35f1 commit c4111a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion do.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (d *DO) Build(builder clause.Builder) {
}

func (d *DO) buildCondition() []clause.Expression {
return d.db.Statement.BuildCondition(d.db)
return d.db.Statement.BuildCondition(d.db.Session(new(gorm.Session)))
}

// underlyingDO return self
Expand Down

0 comments on commit c4111a7

Please sign in to comment.