Skip to content

Commit

Permalink
all events async await
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Jun 26, 2024
1 parent 7fcc298 commit 1f6a22b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/src/event/EVENT_CONTACTFORM_SEND.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Event } from './Event'
import { EventType } from './EventType'

export const EVENT_CONTACTFORM_SEND = (involvedEmail: string) =>
Event(EventType.CONTACTFORM_SEND, { involvedEmail })
export const EVENT_CONTACTFORM_SEND = async (involvedEmail: string) =>
await Event(EventType.CONTACTFORM_SEND, { involvedEmail })
4 changes: 2 additions & 2 deletions backend/src/event/EVENT_CREATE_USER.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Event } from './Event'
import { EventType } from './EventType'

export const EVENT_CREATE_USER = (involvedUserId: number) =>
Event(EventType.CREATE_USER, { involvedUserId })
export const EVENT_CREATE_USER = async (involvedUserId: number) =>
await Event(EventType.CREATE_USER, { involvedUserId })
4 changes: 2 additions & 2 deletions backend/src/event/EVENT_NEWSLETTER_CONFIRM.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Event } from './Event'
import { EventType } from './EventType'

export const EVENT_NEWSLETTER_CONFIRM = (involvedEmail?: string) =>
Event(EventType.NEWSLETTER_CONFIRM, { involvedEmail })
export const EVENT_NEWSLETTER_CONFIRM = async (involvedEmail?: string) =>
await Event(EventType.NEWSLETTER_CONFIRM, { involvedEmail })

0 comments on commit 1f6a22b

Please sign in to comment.