From 46f60d969de45296e830972c15df15dc9270ca4e Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 25 Jun 2025 18:22:20 +0300 Subject: [PATCH] remove getSlotsOrders fn --- apps/web/actions/api/slots.ts | 6 ------ apps/web/hooks/api/slots.ts | 8 -------- packages/graphql/api/slots.ts | 11 ----------- 3 files changed, 25 deletions(-) diff --git a/apps/web/actions/api/slots.ts b/apps/web/actions/api/slots.ts index b6b1fc6..d469909 100644 --- a/apps/web/actions/api/slots.ts +++ b/apps/web/actions/api/slots.ts @@ -37,12 +37,6 @@ export async function getSlots(...variables: Parameters) { - const service = await getService(); - - return service.getSlotsOrders(...variables); -} - export async function updateSlot(...variables: Parameters) { const service = await getService(); diff --git a/apps/web/hooks/api/slots.ts b/apps/web/hooks/api/slots.ts index 4d2d9c6..d3f6025 100644 --- a/apps/web/hooks/api/slots.ts +++ b/apps/web/hooks/api/slots.ts @@ -7,7 +7,6 @@ import { getAvailableTimeSlots, getSlot, getSlots, - getSlotsOrders, updateSlot, } from '@/actions/api/slots'; import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'; @@ -45,13 +44,6 @@ export const useSlotQuery = (variables: Parameters[0]) => { }); }; -export const useSlotsOrdersQuery = (variables: Parameters[0]) => { - return useQuery({ - queryFn: () => getSlotsOrders(variables), - queryKey: ['slots-orders', variables], - }); -}; - export const useAvailableTimeSlotsQuery = ( ...variables: Parameters ) => { diff --git a/packages/graphql/api/slots.ts b/packages/graphql/api/slots.ts index c1bf491..c1a50d5 100644 --- a/packages/graphql/api/slots.ts +++ b/packages/graphql/api/slots.ts @@ -132,17 +132,6 @@ export class SlotsService extends BaseService { return result.data; } - async getSlotsOrders(variables: VariablesOf) { - const { query } = await getClientWithToken(); - - const result = await query({ - query: GQL.GetSlotsOrdersDocument, - variables, - }); - - return result.data; - } - async updateSlot(variables: VariablesOf) { const { mutate } = await getClientWithToken();