diff options
author | 2024-01-11 21:35:12 +0800 | |
---|---|---|
committer | 2024-01-11 13:35:12 +0000 | |
commit | 8059a19ad32d1dea09edd1b00c4685d75c9eb814 (patch) | |
tree | 35c2f0a4b8a74717f35ec66d8995edf433b24461 /scripts | |
parent | 7a275c1648a80d82686f8f7f04588ae448e9a1a3 (diff) | |
download | astro-8059a19ad32d1dea09edd1b00c4685d75c9eb814.tar.gz astro-8059a19ad32d1dea09edd1b00c4685d75c9eb814.tar.zst astro-8059a19ad32d1dea09edd1b00c4685d75c9eb814.zip |
Fix discord fetch code (#9663)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/notify/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/notify/index.js b/scripts/notify/index.js index 98d406cf0..7dd8a3751 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', }, |