|
|
@ -25,9 +25,7 @@ class HeiiOnCall extends NotificationProvider {
|
|
|
|
Authorization: "Bearer " + notification.heiiOnCallApiKey,
|
|
|
|
Authorization: "Bearer " + notification.heiiOnCallApiKey,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const heiiUrl = `https://heiioncall.com/triggers/${notification.heiiOnCallTriggerId}/`;
|
|
|
|
const heiiUrl = `https://heiioncall.com/triggers/${notification.heiiOnCallTriggerId}/`;
|
|
|
|
|
|
|
|
|
|
|
|
// docs https://heiioncall.com/docs#manual-triggers
|
|
|
|
// docs https://heiioncall.com/docs#manual-triggers
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (!heartbeatJSON) {
|
|
|
|
if (!heartbeatJSON) {
|
|
|
@ -42,7 +40,7 @@ class HeiiOnCall extends NotificationProvider {
|
|
|
|
return okMsg;
|
|
|
|
return okMsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (heartbeatJSON.status === UP) {
|
|
|
|
if (heartbeatJSON.status === UP) {
|
|
|
|
await axios.post(heiiUrl + "resolve",payload, config);
|
|
|
|
await axios.post(heiiUrl + "resolve", payload, config);
|
|
|
|
return okMsg;
|
|
|
|
return okMsg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|