fix: endless loop in save

This commit is contained in:
Jannis Rieger 2024-01-20 01:40:15 +01:00
parent 0123dd4509
commit ec1a1d81b0
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func (db *DB) Save(value interface{}) (tx *DB) {
tx.Statement.Dest = value
reflectValue := reflect.Indirect(reflect.ValueOf(value))
for reflectValue.Kind() == reflect.Ptr || reflectValue.Kind() == reflect.Interface {
for reflectValue.Kind() == reflect.Ptr {
reflectValue = reflect.Indirect(reflectValue)
}