From a26c0eab8aa7b818c6f6d905b2c6ed1d8bda2ecb Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 16 Oct 2025 17:28:59 +0300 Subject: [PATCH] hotfix: getRemainingOrdersCount: add master to filter --- packages/graphql/api/subscriptions.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/graphql/api/subscriptions.ts b/packages/graphql/api/subscriptions.ts index f6557fa..2508451 100644 --- a/packages/graphql/api/subscriptions.ts +++ b/packages/graphql/api/subscriptions.ts @@ -341,6 +341,8 @@ export class SubscriptionsService extends BaseService { const now = dayjs(); + const { customer } = await this._getUser(); + const { orders } = await ordersService.getOrders({ filters: { datetime_end: { @@ -349,6 +351,13 @@ export class SubscriptionsService extends BaseService { datetime_start: { gte: now.startOf('month').toISOString(), }, + slot: { + master: { + documentId: { + eq: customer.documentId, + }, + }, + }, state: { eq: GQL.Enum_Order_State.Completed,