diff --git a/http-scans.go b/http-scans.go index 0eaa058..01e6201 100644 --- a/http-scans.go +++ b/http-scans.go @@ -30,7 +30,7 @@ func GetHttpScans(page int) (scans []HttpScan, err error) { return scans, json.NewDecoder(resp.Body).Decode(&scans) } -func InsertHttpScan(requestID string, agentIDs []string) (err error) { +func InsertHttpScan(requestID int64, agentIDs []string) (err error) { jsonBody, err := json.Marshal(&HttpScan{ ReqID: requestID, AgentIDs: strings.Join(agentIDs, ","), diff --git a/types.go b/types.go index f3c3d10..fb696cc 100644 --- a/types.go +++ b/types.go @@ -6,7 +6,7 @@ import ( type HttpScan struct { ID string `json:"id"` - ReqID string `json:"reqId"` + ReqID int64 `json:"reqId"` AgentIDs string `json:"agentIds"` }