pingcheck fix

This commit is contained in:
redanthrax 2022-06-24 11:17:43 -07:00
parent 5917d03374
commit 450ffe15c5
2 changed files with 4 additions and 0 deletions

View file

@ -307,6 +307,7 @@ func (a *Agent) EventLogCheck(data rmm.Check, r *resty.Client) {
}
func (a *Agent) SendPingCheckResult(payload rmm.PingCheckResponse, r *resty.Client) {
payload.AgentID = a.AgentID
_, err := r.R().SetBody(payload).Patch("/api/v3/checkrunner/")
if err != nil {
a.Logger.Debugln(err)