feat(backend): added customIssue to issueEvent convertor
This commit is contained in:
parent
c157154294
commit
4e7b03581c
1 changed files with 10 additions and 0 deletions
|
|
@ -53,6 +53,16 @@ func (s *saverImpl) handleMessage(msg Message) error {
|
|||
return s.pg.InsertMetadata(m)
|
||||
case *IssueEvent:
|
||||
return s.pg.InsertIssueEvent(m)
|
||||
case *CustomIssue:
|
||||
ie := &IssueEvent{
|
||||
Type: "custom",
|
||||
Timestamp: m.Timestamp,
|
||||
MessageID: m.Index,
|
||||
ContextString: m.Name,
|
||||
Payload: m.Payload,
|
||||
}
|
||||
ie.SetMeta(m.Meta())
|
||||
return s.pg.InsertIssueEvent(ie)
|
||||
case *SessionStart:
|
||||
return s.pg.HandleWebSessionStart(m)
|
||||
case *SessionEnd:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue