From e3110a5f50eeb2c1cd961a6d433592de069bf266 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 4 Feb 2025 17:12:36 +0300 Subject: [PATCH] fix forbidden error --- packages/graphql/api/slot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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