Update curl call to show response

Update channel status call to pass the correct name of the parameter
This commit is contained in:
Mark Beamer Jr 2019-08-22 00:09:33 -04:00 committed by Niko Storni
parent 2c9c999c71
commit 1fb1077a94
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ func (a *APIConfig) SetChannelStatus(channelID string, status string, failureRea
"failure_reason": {failureReason},
}
if transferState != nil {
params.Add("transferred", strconv.Itoa(*transferState))
params.Add("transfer_state", strconv.Itoa(*transferState))
}
res, _ := http.PostForm(endpoint, params)
defer res.Body.Close()