Skip to content

Commit 0858efe

Browse files
committed
fix: move after_query position
1 parent 3bc9436 commit 0858efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache/query.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (h *queryHandler) Bind(db *gorm.DB) error {
3333
if err != nil {
3434
return err
3535
}
36-
err = db.Callback().Query().After("gorm:query").Register("gorm:cache:after_query", h.AfterQuery())
36+
err = db.Callback().Query().After("gorm:after_query").Register("gorm:cache:after_query", h.AfterQuery())
3737
if err != nil {
3838
return err
3939
}

0 commit comments

Comments
 (0)