fix(backend): fixed missing js_exception issue type in sessions table

This commit is contained in:
Alexander Zavorotynskiy 2023-07-31 10:34:46 +04:00
parent 8facbb9d6e
commit 9d7cc4935d
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ func (s *saverImpl) handleMessage(msg Message) error {
if err = s.pg.InsertWebErrorEvent(session, types.WrapJSException(m)); err != nil {
return err
}
return s.sessions.UpdateIssuesStats(session.SessionID, 0, 1000)
return s.sessions.UpdateIssuesStats(session.SessionID, 1, 1000)
case *IntegrationEvent:
return s.pg.InsertWebErrorEvent(session, types.WrapIntegrationEvent(m))
case *InputChange:

View file

@ -65,7 +65,7 @@ func WrapJSException(m *JSException) *ErrorEvent {
}
return &ErrorEvent{
MessageID: m.Meta().Index,
Timestamp: uint64(m.Meta().Timestamp),
Timestamp: m.Meta().Timestamp,
Source: SOURCE_JS,
Name: m.Name,
Message: m.Message,