-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove async await from promise returning functions
- Loading branch information
Showing
4 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = async (involvedEmail: string) => | ||
await Event(EventType.CONTACTFORM_SEND, { involvedEmail }) | ||
export const EVENT_CONTACTFORM_SEND = (involvedEmail: string) => | ||
Event(EventType.CONTACTFORM_SEND, { involvedEmail }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = async (involvedUserId: number) => | ||
await Event(EventType.CREATE_USER, { involvedUserId }) | ||
export const EVENT_CREATE_USER = (involvedUserId: number) => | ||
Event(EventType.CREATE_USER, { involvedUserId }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = async (involvedEmail?: string) => | ||
await Event(EventType.NEWSLETTER_CONFIRM, { involvedEmail }) | ||
export const EVENT_NEWSLETTER_CONFIRM = (involvedEmail?: string) => | ||
Event(EventType.NEWSLETTER_CONFIRM, { involvedEmail }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_SUBSCRIBE = async (involvedEmail: string) => | ||
await Event(EventType.NEWSLETTER_SUBSCRIBE, { involvedEmail }) | ||
export const EVENT_NEWSLETTER_SUBSCRIBE = (involvedEmail: string) => | ||
Event(EventType.NEWSLETTER_SUBSCRIBE, { involvedEmail }) |