Skip to content

Commit

Permalink
fix: move after_query position
Browse files Browse the repository at this point in the history
  • Loading branch information
asjdf committed Feb 26, 2023
1 parent 3bc9436 commit 0858efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (h *queryHandler) Bind(db *gorm.DB) error {
if err != nil {
return err
}
err = db.Callback().Query().After("gorm:query").Register("gorm:cache:after_query", h.AfterQuery())
err = db.Callback().Query().After("gorm:after_query").Register("gorm:cache:after_query", h.AfterQuery())
if err != nil {
return err
}
Expand Down

0 comments on commit 0858efe

Please sign in to comment.