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,