fix: return
This commit is contained in:
parent
c45ac6489b
commit
40b3d4bc89
@ -17,6 +17,7 @@ func callMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool) {
|
||||
fc(value.Addr().Interface(), tx)
|
||||
} else {
|
||||
db.AddError(gorm.ErrInvalidValue)
|
||||
return
|
||||
}
|
||||
db.Statement.CurDestIndex++
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user