This commit is contained in:
parent
40838e3f1e
commit
37d44b6216
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { DISCORD_CONTACT_WEBHOOK } from '$env/static/private';
|
import { env } from '$env/dynamic/private';
|
||||||
|
|
||||||
export async function sendContactMessage(name: string, email: string, message: string) {
|
export async function sendContactMessage(name: string, email: string, message: string) {
|
||||||
const form = new FormData();
|
const form = new FormData();
|
||||||
|
|
@ -16,5 +16,5 @@ export async function sendContactMessage(name: string, email: string, message: s
|
||||||
|
|
||||||
form.append('content', content);
|
form.append('content', content);
|
||||||
|
|
||||||
return await fetch(DISCORD_CONTACT_WEBHOOK, { method: 'POST', body: form });
|
return await fetch(env.DISCORD_CONTACT_WEBHOOK, { method: 'POST', body: form });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue