From a12b6f67331bd47b354214d5687d45f661ecf4a2 Mon Sep 17 00:00:00 2001 From: Matheus Reis <35343551+matheusgnreis@users.noreply.github.com> Date: Mon, 10 Jun 2024 01:13:19 -0300 Subject: [PATCH] chore: log for bazipass item --- functions/routes/ecom/modules/list-payments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/routes/ecom/modules/list-payments.js b/functions/routes/ecom/modules/list-payments.js index b10f6a3..ccb7306 100644 --- a/functions/routes/ecom/modules/list-payments.js +++ b/functions/routes/ecom/modules/list-payments.js @@ -133,8 +133,9 @@ exports.post = ({ appSdk }, req, res) => { const installmentsTotal = gateway.discount ? amount.total : initialTotalAmount // list all installment options and default one const isBazipass = params.items && params.items.length && params.items.some(({name}) => name.includes('Bazipass')) + console.log('is bazipass', isBazipass, JSON.stringify(params.items)) if (isBazipass) { - installments.max_number = config.bazipass_max_number + installments.max_number = config.bazipass_max_number || 12 } addInstallments(installmentsTotal, installments, gateway, response, initialTotalAmount, isDiscountInOneParcel) }