Skip to content
Snippets Groups Projects
Commit 370a0022 authored by ko_oler's avatar ko_oler
Browse files

Merge branch 'master' into feature/PRXS-951-2057-EventsName

parents 857ff05f 84467571
No related branches found
No related tags found
No related merge requests found
......@@ -63,9 +63,11 @@ func Handler(obj any) *id.ObjectId {
i.UserID = val.GetID(context.TODO())
return id.MustObjectId(&i)
case *auth.ClientPrincipal:
var i id.ClientId
i.ClientID = val.GetID(context.TODO())
return id.MustObjectId(&i)
client, _ := val.Client(context.TODO())
if client == nil {
return id.MustObjectId(&id.ClientId{})
}
return Handler(client)
case *auth.SystemPrincipal:
return id.MustObjectId(&id.SystemId{})
case *auth.Anonymous:
......
......@@ -27,7 +27,7 @@ func (l Level) String() string {
}
type Entry struct {
ID string `json:"id" bson:"id" mapstructure:"id"`
ID string `json:"id" bson:"_id" mapstructure:"id"`
Timestamp time.Time `json:"timestamp,omitempty" bson:"timestamp,omitempty" mapstructure:"timestamp,omitempty"`
Level Level `json:"level,omitempty" bson:"level,omitempty" mapstructure:"level,omitempty"`
Message string `json:"message,omitempty" bson:"message,omitempty" mapstructure:"message,omitempty"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment