🐛 Fixing the limit for searching deals on hubspot (#1803)

This commit is contained in:
Omar Ajoue 2021-05-20 02:46:06 +02:00 committed by GitHub
parent e21382baee
commit 481dbae16b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2106,7 +2106,7 @@ export class Hubspot implements INodeType {
responseData = await hubspotApiRequestAllItems.call(this, 'results', 'POST', endpoint, body, qs); responseData = await hubspotApiRequestAllItems.call(this, 'results', 'POST', endpoint, body, qs);
} else { } else {
qs.count = this.getNodeParameter('limit', 0) as number; body.limit = this.getNodeParameter('limit', 0) as number;
responseData = await hubspotApiRequest.call(this, 'POST', endpoint, body, qs); responseData = await hubspotApiRequest.call(this, 'POST', endpoint, body, qs);
responseData = responseData.results; responseData = responseData.results;
} }