mirror of
https://github.com/stashapp/stash.git
synced 2026-01-20 07:01:33 +01:00
Fix error when updating objects with slice data
This commit is contained in:
parent
4433917768
commit
a4f0a80816
1 changed files with 1 additions and 2 deletions
|
|
@ -295,9 +295,8 @@ func sqlGenKeys(i interface{}, partial bool) string {
|
|||
}
|
||||
default:
|
||||
reflectValue := reflect.ValueOf(t)
|
||||
kind := reflectValue.Kind()
|
||||
isNil := reflectValue.IsNil()
|
||||
if kind != reflect.Ptr || !isNil {
|
||||
if !isNil {
|
||||
query = append(query, fmt.Sprintf("%s=:%s", key, key))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue