fix: webhook method is undefined on older notification providers (#6650)

This commit is contained in:
Frank Elsinga 2026-01-08 20:15:02 +01:00 committed by GitHub
parent 4310c7f949
commit 0c35ce1ae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ class Webhook extends NotificationProvider {
const okMsg = "Sent Successfully.";
try {
const httpMethod = notification.httpMethod.toLowerCase() || "post";
const httpMethod = notification.httpMethod?.toLowerCase() || "post";
let data = {
heartbeat: heartbeatJSON,