fix forbidden error

This commit is contained in:
vchikalkin 2025-02-04 17:12:36 +03:00
parent 30333102a2
commit e3110a5f50

View File

@ -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