fix: webhook method is undefined on older notification providers (#6650)
This commit is contained in:
parent
4310c7f949
commit
0c35ce1ae9
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user