Skip to content
Snippets Groups Projects
Commit 88aba0ce authored by ko_oler's avatar ko_oler
Browse files

правки в функцию ToMap

parent dadea403
No related branches found
No related tags found
No related merge requests found
package log
import (
"maps"
"time"
"git.perx.ru/perxis/perxis-go/id"
......@@ -112,10 +111,11 @@ func (e *Entry) ToMap() map[string]any {
}
if e.ObjectID != nil {
res["object_id"] = e.ObjectID.String()
maps.Copy(res, e.ObjectID.ToMap())
res["object"] = e.ObjectID.ToMap()
}
if e.CallerID != nil {
res["caller_id"] = e.CallerID.String()
res["caller"] = e.CallerID.ToMap()
}
if e.Attr != nil {
res["attr"] = e.Attr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment