mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-31 21:55:38 +00:00
Actually send event data
This commit is contained in:
parent
e6ca459ef2
commit
965b94a32d
@ -17,10 +17,6 @@ type defaultMapper struct {
|
||||
}
|
||||
|
||||
func (d *defaultMapper) FromInternal(data map[string]interface{}) {
|
||||
if t, ok := data["type"]; ok {
|
||||
data["_type"] = t
|
||||
}
|
||||
|
||||
if _, ok := data["id"]; ok || data == nil {
|
||||
return
|
||||
}
|
||||
|
6
vendor/github.com/rancher/norman/pkg/types/mapper.go
generated
vendored
6
vendor/github.com/rancher/norman/pkg/types/mapper.go
generated
vendored
@ -90,6 +90,12 @@ func (t *typeMapper) FromInternal(data map[string]interface{}) {
|
||||
}
|
||||
}
|
||||
|
||||
if t.root {
|
||||
if _, ok := data["type"]; ok {
|
||||
data["type"] = t.typeName
|
||||
}
|
||||
}
|
||||
|
||||
Mappers(t.Mappers).FromInternal(data)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user