hotfix: getRemainingOrdersCount: add master to filter
This commit is contained in:
parent
3ac86cfeb0
commit
a26c0eab8a
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user