Skip to content

Commit

Permalink
Merge branch 'master' into kkumar-gcc/#241
Browse files Browse the repository at this point in the history
  • Loading branch information
kkumar-gcc authored May 30, 2024
2 parents e5c470f + 6a39d0e commit 69931f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/gorm/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -1017,9 +1017,10 @@ func (r *QueryImpl) buildScopes(db *gormio.DB) *gormio.DB {

var gormFuncs []func(*gormio.DB) *gormio.DB
for _, scope := range r.conditions.scopes {
currentScope := scope
gormFuncs = append(gormFuncs, func(tx *gormio.DB) *gormio.DB {
queryImpl := r.new(tx)
query := scope(queryImpl)
query := currentScope(queryImpl)
queryImpl = query.(*QueryImpl)
queryImpl = queryImpl.buildConditions()

Expand Down

0 comments on commit 69931f3

Please sign in to comment.