From 6a8804abb1afb872de9a05e25735ed1e02814f25 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 3 Jul 2025 22:52:16 +0300 Subject: [PATCH] refactor(api/notify): format orderCreated method parameters for improved readability --- packages/graphql/api/notify.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/graphql/api/notify.ts b/packages/graphql/api/notify.ts index ba31aa4..2550604 100644 --- a/packages/graphql/api/notify.ts +++ b/packages/graphql/api/notify.ts @@ -18,9 +18,12 @@ const STATE_MAP = { unknown: 'Неизвестно', }; export class NotifyService extends BaseService { - async orderCreated(variables: { - input: Omit['input'], 'time_end'>; - }, createdByMaster: boolean) { + async orderCreated( + variables: { + input: Omit['input'], 'time_end'>; + }, + createdByMaster: boolean, + ) { const customersService = new CustomersService(this.customer); const slotsService = new SlotsService(this.customer); const servicesService = new ServicesService(this.customer); @@ -29,7 +32,6 @@ export class NotifyService extends BaseService { const serviceId = String(variables.input.services?.[0] ?? ''); const timeStart = String(variables.input.time_start ?? ''); const clientId = String(variables.input.client ?? ''); - const state = String(variables.input.state ?? ''); let emoji = '🆕'; let confirmText = '';