From ae9488b2d059f8f5759ae0b7d83391471affa810 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 5 Aug 2025 10:43:28 +0300 Subject: [PATCH] refactor(slots): rename checkUpdateIsTimeChanging to checkUpdateDatetime for clarity in slot update validation --- packages/graphql/api/slots.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/graphql/api/slots.ts b/packages/graphql/api/slots.ts index 12e39ea..f3a6a2f 100644 --- a/packages/graphql/api/slots.ts +++ b/packages/graphql/api/slots.ts @@ -166,7 +166,7 @@ export class SlotsService extends BaseService { async updateSlot(variables: VariablesOf) { await this.checkUpdatePermission(variables); - await this.checkUpdateIsTimeChanging(variables); + await this.checkUpdateDatetime(variables); const { mutate } = await getClientWithToken(); @@ -223,7 +223,7 @@ export class SlotsService extends BaseService { } } - private async checkUpdateIsTimeChanging(variables: VariablesOf) { + private async checkUpdateDatetime(variables: VariablesOf) { const { slot } = await this.getSlot({ documentId: variables.documentId }); if (!slot) throw new Error(ERRORS.SLOT_NOT_FOUND);