Skip to content

Commit

Permalink
Fix discord fetch code (#9663)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jan 11, 2024
1 parent 7a275c1 commit 8059a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/notify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit 8059a19

Please sign in to comment.