hotfix: getRemainingOrdersCount: add master to filter

This commit is contained in:
vchikalkin 2025-10-16 17:28:59 +03:00
parent 3ac86cfeb0
commit a26c0eab8a

View File

@ -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,