From dd770a72589e55b070032178885bc7dfc0d13768 Mon Sep 17 00:00:00 2001 From: Hassan_Wari Date: Fri, 12 Jan 2024 18:49:36 +0300 Subject: [PATCH] removed unecessary variable --- integration-templates/bamboohr/bamboohr-employees.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/integration-templates/bamboohr/bamboohr-employees.ts b/integration-templates/bamboohr/bamboohr-employees.ts index 0b0c9e3adb..0789ef3767 100644 --- a/integration-templates/bamboohr/bamboohr-employees.ts +++ b/integration-templates/bamboohr/bamboohr-employees.ts @@ -52,8 +52,6 @@ export default async function fetchData(nango: NangoSync) { ] }; - let totalRecords = 0; - try { const response = await nango.post({ endpoint: '/v1/reports/custom', @@ -71,7 +69,6 @@ export default async function fetchData(nango: NangoSync) { const chunk = employees.slice(i, i + chunkSize); const mappedEmployees = mapEmployee(chunk); const batchSize = mappedEmployees.length; - totalRecords += batchSize; await nango.log(`Saving batch of ${batchSize} employee(s)`); await nango.batchSave(mappedEmployees, 'BamboohrEmployee');