mirror of https://github.com/statping/statping
notifier test handler possible fix
parent
9247ef6f8c
commit
906711e968
|
@ -14,6 +14,7 @@
|
||||||
- Added Custom oAuth Authentication method
|
- Added Custom oAuth Authentication method
|
||||||
- Fixed setup form not creating user from values inputted in form
|
- Fixed setup form not creating user from values inputted in form
|
||||||
- Fixed issues with Telegram Notifier
|
- Fixed issues with Telegram Notifier
|
||||||
|
- Modified notifier test handler to return notifier based on URL, not JSON payload
|
||||||
|
|
||||||
# 0.90.55 (06-18-2020)
|
# 0.90.55 (06-18-2020)
|
||||||
- Added 404 page
|
- Added 404 page
|
||||||
|
|
|
@ -70,7 +70,7 @@ type testNotificationReq struct {
|
||||||
|
|
||||||
func testNotificationHandler(w http.ResponseWriter, r *http.Request) {
|
func testNotificationHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
vars := mux.Vars(r)
|
vars := mux.Vars(r)
|
||||||
_, err := notifications.Find(vars["notifier"])
|
n, err := notifications.Find(vars["notifier"])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
sendErrorJson(err, w, r)
|
sendErrorJson(err, w, r)
|
||||||
return
|
return
|
||||||
|
@ -82,7 +82,7 @@ func testNotificationHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
notif := services.ReturnNotifier(req.Notification.Method)
|
notif := services.ReturnNotifier(n.Method)
|
||||||
|
|
||||||
var out string
|
var out string
|
||||||
if req.Method == "success" {
|
if req.Method == "success" {
|
||||||
|
|
Loading…
Reference in New Issue