|
|
@ -15,7 +15,7 @@ class Notification {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
console.log(error)
|
|
|
|
console.error(error)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ class Notification {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
console.log(error)
|
|
|
|
console.error(error)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ class Notification {
|
|
|
|
let res = await axios.post(notification.webhookURL, finalData, config)
|
|
|
|
let res = await axios.post(notification.webhookURL, finalData, config)
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
console.log(error)
|
|
|
|
console.error(error)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -105,7 +105,7 @@ class Notification {
|
|
|
|
let res = await axios.post(notification.discordWebhookUrl, data)
|
|
|
|
let res = await axios.post(notification.discordWebhookUrl, data)
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch(error) {
|
|
|
|
} catch(error) {
|
|
|
|
console.log(error)
|
|
|
|
console.error(error)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -121,7 +121,7 @@ class Notification {
|
|
|
|
let res = await axios.post(notification.signalURL, data, config)
|
|
|
|
let res = await axios.post(notification.signalURL, data, config)
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
console.log(error)
|
|
|
|
console.error(error)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -177,7 +177,7 @@ class Notification {
|
|
|
|
let res = await axios.post(notification.slackwebhookURL, data)
|
|
|
|
let res = await axios.post(notification.slackwebhookURL, data)
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
console.log(error)
|
|
|
|
console.error(error)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|