Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zarkones committed Nov 17, 2024
1 parent 14899a9 commit 89b1bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion http-scans.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ","),
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

type HttpScan struct {
ID string `json:"id"`
ReqID string `json:"reqId"`
ReqID int64 `json:"reqId"`
AgentIDs string `json:"agentIds"`
}

Expand Down

0 comments on commit 89b1bf0

Please sign in to comment.