notifier test handler possible fix

pull/702/head
hunterlong 2020-06-26 18:20:48 -07:00
parent 9247ef6f8c
commit 906711e968
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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" {