webhook calls moved server-side

This commit is contained in:
Owen Rees
2023-09-10 20:23:42 +02:00
parent afdb57bd22
commit 4984639f23
3 changed files with 36 additions and 8 deletions
+1 -1
View File
@@ -29,8 +29,8 @@ export const handleTournamentSubmit = async (
setIsSending(true);
try {
await tournamentFormToDB(formRefs); // write to DB
await discordWebhook(formRefs); // send Discord notification
await tournamentFormToDB(formRefs); // write to DB
setIsSending(false);
setResponseMessage({
isSuccessful: true,