Skip to content

Commit a0f576f

Browse files
committed
GRAL-2493 Return the whole object on response when updating
1 parent a9fec73 commit a0f576f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Controllers/ProductsController.php

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

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

424422
/**

0 commit comments

Comments
 (0)