diff --git a/scripts/notify/index.js b/scripts/notify/index.js index 98d406cf01ea..7dd8a3751767 100755 --- a/scripts/notify/index.js +++ b/scripts/notify/index.js @@ -163,9 +163,9 @@ async function run() { } const content = await generateMessage(); - await fetch(JSON.stringify({ content }), { - url: `${process.env.DISCORD_WEBHOOK}?wait=true`, + await fetch(`${process.env.DISCORD_WEBHOOK}?wait=true`, { method: 'POST', + body: JSON.stringify({ content }), headers: { 'content-type': 'application/json', },