From e0a4fc835d3ff56f475441dc3302dfc3d92055b2 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 2 Jul 2024 15:58:02 +0200 Subject: [PATCH] remove async await from promise returning functions --- backend/src/event/EVENT_CONTACTFORM_SEND.ts | 4 ++-- backend/src/event/EVENT_CREATE_USER.ts | 4 ++-- backend/src/event/EVENT_NEWSLETTER_CONFIRM.ts | 4 ++-- backend/src/event/EVENT_NEWSLETTER_SUBSCRIBE.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/src/event/EVENT_CONTACTFORM_SEND.ts b/backend/src/event/EVENT_CONTACTFORM_SEND.ts index 69e5490ac3..97072cb7a3 100644 --- a/backend/src/event/EVENT_CONTACTFORM_SEND.ts +++ b/backend/src/event/EVENT_CONTACTFORM_SEND.ts @@ -1,5 +1,5 @@ import { Event } from './Event' import { EventType } from './EventType' -export const EVENT_CONTACTFORM_SEND = async (involvedEmail: string) => - await Event(EventType.CONTACTFORM_SEND, { involvedEmail }) +export const EVENT_CONTACTFORM_SEND = (involvedEmail: string) => + Event(EventType.CONTACTFORM_SEND, { involvedEmail }) diff --git a/backend/src/event/EVENT_CREATE_USER.ts b/backend/src/event/EVENT_CREATE_USER.ts index 130c6f3ffd..c9a86c0cb1 100644 --- a/backend/src/event/EVENT_CREATE_USER.ts +++ b/backend/src/event/EVENT_CREATE_USER.ts @@ -1,5 +1,5 @@ import { Event } from './Event' import { EventType } from './EventType' -export const EVENT_CREATE_USER = async (involvedUserId: number) => - await Event(EventType.CREATE_USER, { involvedUserId }) +export const EVENT_CREATE_USER = (involvedUserId: number) => + Event(EventType.CREATE_USER, { involvedUserId }) diff --git a/backend/src/event/EVENT_NEWSLETTER_CONFIRM.ts b/backend/src/event/EVENT_NEWSLETTER_CONFIRM.ts index 6248bf80fb..c0ca370caa 100644 --- a/backend/src/event/EVENT_NEWSLETTER_CONFIRM.ts +++ b/backend/src/event/EVENT_NEWSLETTER_CONFIRM.ts @@ -1,5 +1,5 @@ import { Event } from './Event' import { EventType } from './EventType' -export const EVENT_NEWSLETTER_CONFIRM = async (involvedEmail?: string) => - await Event(EventType.NEWSLETTER_CONFIRM, { involvedEmail }) +export const EVENT_NEWSLETTER_CONFIRM = (involvedEmail?: string) => + Event(EventType.NEWSLETTER_CONFIRM, { involvedEmail }) diff --git a/backend/src/event/EVENT_NEWSLETTER_SUBSCRIBE.ts b/backend/src/event/EVENT_NEWSLETTER_SUBSCRIBE.ts index 52cfebfa73..0560a40831 100644 --- a/backend/src/event/EVENT_NEWSLETTER_SUBSCRIBE.ts +++ b/backend/src/event/EVENT_NEWSLETTER_SUBSCRIBE.ts @@ -1,5 +1,5 @@ import { Event } from './Event' import { EventType } from './EventType' -export const EVENT_NEWSLETTER_SUBSCRIBE = async (involvedEmail: string) => - await Event(EventType.NEWSLETTER_SUBSCRIBE, { involvedEmail }) +export const EVENT_NEWSLETTER_SUBSCRIBE = (involvedEmail: string) => + Event(EventType.NEWSLETTER_SUBSCRIBE, { involvedEmail })