Fix row callback name

This commit is contained in:
Jinzhu 2020-07-22 15:05:38 +08:00
parent da16f7b475
commit 87112ab1c7
1 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,6 @@ func RegisterDefaultCallbacks(db *gorm.DB, config *Config) {
updateCallback.Register("gorm:after_update", AfterUpdate)
updateCallback.Match(enableTransaction).Register("gorm:commit_or_rollback_transaction", CommitOrRollbackTransaction)
db.Callback().Row().Register("gorm:raw", RowQuery)
db.Callback().Row().Register("gorm:row", RowQuery)
db.Callback().Raw().Register("gorm:raw", RawExec)
}