add webhook
This commit is contained in:
@@ -141,6 +141,7 @@ async function main(data) {
|
|||||||
if (config.activate_telegram) {
|
if (config.activate_telegram) {
|
||||||
sendMessage("[INFO]: Einsatdepesche wird Gedruckt - " + data.title, messageIDs);
|
sendMessage("[INFO]: Einsatdepesche wird Gedruckt - " + data.title, messageIDs);
|
||||||
}
|
}
|
||||||
|
axios.get("https://maker.ifttt.com/trigger/Einsatz/with/key/f4QUHDvvWTG9dOdTyBDDRMc2jxUCM-AUPpm7TkyKwQ_")
|
||||||
const filePath = cacheFolder + data.foreign_id + ".pdf";
|
const filePath = cacheFolder + data.foreign_id + ".pdf";
|
||||||
await createPDF({ filePath, ...data });
|
await createPDF({ filePath, ...data });
|
||||||
console.log("PDF created, printing now");
|
console.log("PDF created, printing now");
|
||||||
|
|||||||
Reference in New Issue
Block a user