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);