update http status

This commit is contained in:
LinkLeong 2022-09-16 04:47:42 +01:00
parent 7f4562629a
commit 582f85c3ba

View file

@ -36,7 +36,7 @@ func (n *notifyService) SendNotify(path string, message map[string]interface{})
return err
}
if response.StatusCode != http.StatusCreated {
if response.StatusCode != http.StatusOK {
return errors.New("failed to send notify (status code: " + fmt.Sprint(response.StatusCode) + ")")
}
return nil
@ -58,7 +58,7 @@ func (n *notifyService) SendSystemStatusNotify(message map[string]interface{}) e
return err
}
if response.StatusCode != http.StatusCreated {
if response.StatusCode != http.StatusOK {
return errors.New("failed to send notify (status code: " + fmt.Sprint(response.StatusCode) + ")")
}
return nil