Skip to content

Commit

Permalink
fixed create_ts field
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovikov committed Sep 30, 2021
1 parent 1f1ddb2 commit 9196a9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions data/service/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,12 @@ func (ss *SearchService) GetMessageByID(searchObject *model.SearchObject) (strin
dataElement.Merge(newData)
}
}

if dataElement.Exists("timeSeconds") {
createDate := int64(dataElement.S("timeSeconds").Data().(float64)*1000000 + dataElement.S("timeUseconds").Data().(float64))
dataElement.Set(createDate/1000, "create_ts")
}

dataReply.ArrayAppend(dataElement.Data())
}
dataKeys := gabs.Wrap([]interface{}{})
Expand Down Expand Up @@ -1172,6 +1178,7 @@ func (ss *SearchService) getTransactionSummary(data *gabs.Container, aliasData m
callElement.CreateDate = ts / 1000
callElement.MicroTs = callElement.CreateDate
dataElement.Set(callElement.MicroTs, "create_date")
dataElement.Set(callElement.MicroTs, "create_ts")
}

if dataElement.Exists("protocol") {
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

//VERSION
var VERSION_APPLICATION = "1.4.13"
var VERSION_APPLICATION = "1.4.14"

//NAME
var NAME_APPLICATION = "homer-app"
Expand Down

0 comments on commit 9196a9d

Please sign in to comment.