From 9ca112a3b50a177365d27a876b2842fa1c6a38c7 Mon Sep 17 00:00:00 2001 From: Htin Lynn Date: Fri, 5 May 2023 12:31:12 +0700 Subject: [PATCH] feat: add pipeline_id into deals summary api --- src/Controllers/DealsController.php | 9 +++++---- tests/Controllers/DealsControllerTest.php | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Controllers/DealsController.php b/src/Controllers/DealsController.php index 3c2cee11..a09b2546 100644 --- a/src/Controllers/DealsController.php +++ b/src/Controllers/DealsController.php @@ -261,10 +261,11 @@ public function getDealsSummary( //process optional query parameters APIHelper::appendUrlWithQueryParameters($_queryBuilder, array ( - 'status' => $this->val($options, 'status'), - 'filter_id' => $this->val($options, 'filterId'), - 'user_id' => $this->val($options, 'userId'), - 'stage_id' => $this->val($options, 'stageId'), + 'status' => $this->val($options, 'status'), + 'filter_id' => $this->val($options, 'filterId'), + 'user_id' => $this->val($options, 'userId'), + 'stage_id' => $this->val($options, 'stageId'), + 'pipeline_id' => $this->val($options, 'pipelineId'), )); //validate and preprocess url diff --git a/tests/Controllers/DealsControllerTest.php b/tests/Controllers/DealsControllerTest.php index d05a3d2b..adcf5ae0 100644 --- a/tests/Controllers/DealsControllerTest.php +++ b/tests/Controllers/DealsControllerTest.php @@ -217,6 +217,7 @@ public function testTestGetDealsSummary() $input['filterId'] = null; $input['userId'] = null; $input['stageId'] = null; + $input['pipelineId'] = null; // Set callback and perform API call $result = null;