From ec1a1d81b0269fa713aba44616f9fb69ed214fbc Mon Sep 17 00:00:00 2001 From: Jannis Rieger Date: Sat, 20 Jan 2024 01:40:15 +0100 Subject: [PATCH] fix: endless loop in save --- finisher_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finisher_api.go b/finisher_api.go index f97571ed..c1586825 100644 --- a/finisher_api.go +++ b/finisher_api.go @@ -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) }