diff --git a/packages/graphql/api/slot.ts b/packages/graphql/api/slot.ts index e128bce..2cef9ed 100644 --- a/packages/graphql/api/slot.ts +++ b/packages/graphql/api/slot.ts @@ -1,9 +1,9 @@ 'use server'; -import { createApolloClient } from '../apollo/client'; +import { getClientWithToken } from '../apollo/client'; import * as GQL from '../types'; export async function createSlot(input: GQL.CreateSlotMutationVariables['input']) { - const { mutate } = await createApolloClient(); + const { mutate } = await getClientWithToken(); // TODO: check slot does not overlap with others