mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fix pointer handling in inmem nextID (#323)
This commit is contained in:
parent
e38dd40699
commit
05cb15d63c
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ func sortResults(slice interface{}, opt kolide.ListOptions, fields map[string]st
|
|||
// nextID returns the next ID value that should be used for a struct of the
|
||||
// given type
|
||||
func (orm *inmem) nextID(val interface{}) uint {
|
||||
valType := reflect.TypeOf(val)
|
||||
valType := reflect.TypeOf(reflect.Indirect(reflect.ValueOf(val)).Interface())
|
||||
orm.nextIDs[valType]++
|
||||
return orm.nextIDs[valType]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue