fix: remove aux query to get customer information related with individual discounts
This commit is contained in:
parent
310c9eb009
commit
e837ee3e7a
2 changed files with 1 additions and 3 deletions
|
|
@ -10,8 +10,7 @@ const resolvers = {
|
|||
Query: {
|
||||
customers: (...[, { phone, name, address, id }]) => customers.getCustomersList(phone, name, address, id),
|
||||
customer: (...[, { customerId }]) => customers.getCustomerById(customerId),
|
||||
customerFilters: () => filters.customer(),
|
||||
getCustomersWithDiscounts: (...[, { discounts }]) => loyalty.getCustomersWithDiscounts(discounts)
|
||||
customerFilters: () => filters.customer()
|
||||
},
|
||||
Mutation: {
|
||||
setCustomer: (root, { customerId, customerInput }, context, info) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue