Fix/duplicate events on onboarding (#716)

This commit is contained in:
Femi Odugbesan authored and GitHub committed 2021-09-22 08:25:33 +01:00
1 parent d4f29464f2
commit a047177e72
6 files changed
+115 -16

No files matched your search

@@ -0,0 +1,10 @@
import * as fetch from "@lib/core/http/fetch-wrapper";
import { EventType } from "@prisma/client";
type GetEventsResponse = { message: string; data: EventType[] };
const getEventTypes = async () => {
const response = await fetch.get<GetEventsResponse>("/api/event-type");
return response.data;
};
export default getEventTypes;