Compare commits
1 commit
462cd5483a
...
93ef27ef25
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93ef27ef25 |
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ export async function sendContactMessage(name: string, email: string, message: s
|
||||||
form.append('content', content);
|
form.append('content', content);
|
||||||
|
|
||||||
if (!env.DISCORD_CONTACT_WEBHOOK) {
|
if (!env.DISCORD_CONTACT_WEBHOOK) {
|
||||||
return;
|
throw new Error('Undefined discord webhook');
|
||||||
}
|
}
|
||||||
const url = new URL(env.DISCORD_CONTACT_WEBHOOK);
|
const url = new URL(env.DISCORD_CONTACT_WEBHOOK);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue