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
|
||||
- Fixed setup form not creating user from values inputted in form
|
||||
- Fixed issues with Telegram Notifier
|
||||
- Modified notifier test handler to return notifier based on URL, not JSON payload
|
||||
|
||||
# 0.90.55 (06-18-2020)
|
||||
- Added 404 page
|
||||
|
|
|
@ -70,7 +70,7 @@ type testNotificationReq struct {
|
|||
|
||||
func testNotificationHandler(w http.ResponseWriter, r *http.Request) {
|
||||
vars := mux.Vars(r)
|
||||
_, err := notifications.Find(vars["notifier"])
|
||||
n, err := notifications.Find(vars["notifier"])
|
||||
if err != nil {
|
||||
sendErrorJson(err, w, r)
|
||||
return
|
||||
|
@ -82,7 +82,7 @@ func testNotificationHandler(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
notif := services.ReturnNotifier(req.Notification.Method)
|
||||
notif := services.ReturnNotifier(n.Method)
|
||||
|
||||
var out string
|
||||
if req.Method == "success" {
|
||||
|
|
Loading…
Reference in New Issue