Skip to content

Commit

Permalink
update error Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Jun 17, 2024
1 parent 3ee9e00 commit 1c41e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func GetCurrentGoroutineStack() string {
n := runtime.Stack(buf[:], false)
return string(buf[:n])
}
func DBTransactional(db *gorm.DB, handle func(tx *gorm.DB) error) (err error) {
func DBTransactional(db *gorm.DB, handle func(*gorm.DB) error) (err error) {
tx := db.Begin()
defer func() {
if p := recover(); p != nil {
Expand Down

0 comments on commit 1c41e80

Please sign in to comment.