chore: rename functions to more appropriate names

This commit is contained in:
Sérgio Salgado 2022-02-18 18:34:51 +00:00
parent e080c3bcbf
commit cb7b97b0e2
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ function addOrUpdateCustomer (req) {
})
})
.then(customer => {
return loyalty.getCustomerIndividualDiscounts(customer.id)
return loyalty.getCustomerActiveIndividualDiscount(customer.id)
.then(discount => ({ ...customer, discount }))
})
}