Skip to content

Commit

Permalink
fix: Updates method is invalid for tag type hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
qqxhb committed Sep 18, 2024
1 parent ebb6364 commit ec1af7f
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 @@ -710,7 +710,7 @@ func (d *DO) Updates(value interface{}) (info ResultInfo, err error) {
valTyp = rawTyp
}

tx := d.db
tx := d.db.Model(d.newResultPointer())
if d.backfillData != nil {
tx = tx.Model(d.backfillData)
}
Expand Down

0 comments on commit ec1af7f

Please sign in to comment.