mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Fix discord fetch code (#9663)
This commit is contained in:
parent
7a275c1648
commit
8059a19ad3
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue