Skip to content

Commit 1be0fb5

Browse files
authored
Correct key for returned leads using scroll api
Leads are returned under the key `contacts` when using the scroll api.
1 parent 496e137 commit 1be0fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ client.leads.scroll.each({}, function(res) {
178178
// after this promise has resolved
179179
new Bluebird((resolve) => {
180180
setTimeout(() => {
181-
console.log(res.body.users.length);
181+
console.log(res.body.contacts.length);
182182
// Your custom logic
183183
resolve();
184184
}, 500)

0 commit comments

Comments
 (0)