Skip to content

Commit f4771b8

Browse files
committed
Revert "GRAL-2493 Return the whole object on response when updating"
This reverts commit a0f576f.
1 parent a0f576f commit f4771b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Controllers/ProductsController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ public function updateAProduct(
416416
//handle errors defined at the API level
417417
$this->validateResponse($_httpResponse, $_httpContext);
418418

419-
return CamelCaseHelper::keysToCamelCase($response->body);
419+
$mapper = $this->getJsonMapper();
420+
421+
return CamelCaseHelper::keysToCamelCase($mapper->mapClass($response->body, 'Pipedrive\\Models\\Product'));
420422
}
421423

422424
/**

0 commit comments

Comments
 (0)