From 1426a39465db2b0ad7766abfd172860f9b23be07 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 26 Jun 2024 11:25:41 +0200 Subject: [PATCH] async function --- backend/src/graphql/resolvers/ContactFormResolver.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/graphql/resolvers/ContactFormResolver.ts b/backend/src/graphql/resolvers/ContactFormResolver.ts index 70b131bc0b..6fcdd3d6db 100644 --- a/backend/src/graphql/resolvers/ContactFormResolver.ts +++ b/backend/src/graphql/resolvers/ContactFormResolver.ts @@ -7,7 +7,9 @@ import { EVENT_CONTACTFORM_SEND } from '#src/event/Events' @Resolver() export class ContactFormResolver { @Mutation(() => Boolean) - createContactForm(@Arg('contactFormData') contactFormData: ContactFormInput): boolean { + async createContactForm( + @Arg('contactFormData') contactFormData: ContactFormInput, + ): Promise { void sendContactEmails(contactFormData) await EVENT_CONTACTFORM_SEND(contactFormData.email) return true