Skip to content

Commit

Permalink
removed unecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hassan254-prog committed Jan 12, 2024
1 parent bc32ebe commit dd770a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions integration-templates/bamboohr/bamboohr-employees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ export default async function fetchData(nango: NangoSync) {
]
};

let totalRecords = 0;

try {
const response = await nango.post({
endpoint: '/v1/reports/custom',
Expand All @@ -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');
Expand Down

0 comments on commit dd770a7

Please sign in to comment.