Fix/duplicate events on onboarding (#716)
This commit is contained in:
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;
|
||||
Reference in new issue
Block a user