Skip to content

Commit

Permalink
fix(Pipedrive Node): Fix limit issue with Lead -> GetAll (#3436)
Browse files Browse the repository at this point in the history
  • Loading branch information
IamDrowsy authored Jun 13, 2022
1 parent c121952 commit 34e891c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4813,6 +4813,11 @@ export class Pipedrive implements INodeType {

// https://developers.pipedrive.com/docs/api/v1/Leads#getLeads

returnAll = this.getNodeParameter('returnAll', i) as boolean;
if (returnAll === false) {
qs.limit = this.getNodeParameter('limit', i) as number;
}

const filters = this.getNodeParameter('filters', i) as IDataObject;

if (Object.keys(filters).length) {
Expand Down

0 comments on commit 34e891c

Please sign in to comment.