Skip to content

Commit

Permalink
async function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Jun 26, 2024
1 parent e5542f7 commit 1426a39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/graphql/resolvers/ContactFormResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean> {
void sendContactEmails(contactFormData)
await EVENT_CONTACTFORM_SEND(contactFormData.email)
return true
Expand Down

0 comments on commit 1426a39

Please sign in to comment.