On utilise mon ntfy du NAS
This commit is contained in:
@@ -138,7 +138,7 @@ app.get("/presence-anniversaire", (req, res) => {
|
|||||||
db.query("INSERT INTO anniversaire (enfant, present) VALUES (?, ?)", [enfant, (present == 'true' ? 1 : 0)], function (err, result) {
|
db.query("INSERT INTO anniversaire (enfant, present) VALUES (?, ?)", [enfant, (present == 'true' ? 1 : 0)], function (err, result) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|
||||||
fetch('https://ntfy.sh/presence-anniversaire-louisa', {
|
fetch('https://ntfy.thecoredev.fr/anniv-louisa', {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: messageNotif
|
body: messageNotif
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user