Fix for regression in Handler.php
This commit is contained in:
parent
d213b4e2dd
commit
e17ff7dbfd
1 changed files with 2 additions and 2 deletions
|
|
@ -40,12 +40,12 @@ trait SubscriptionHooker
|
|||
RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false
|
||||
]);
|
||||
|
||||
return json_decode($response->getBody(),true);
|
||||
return array_merge($body, json_decode($response->getBody(),true));
|
||||
}
|
||||
catch(\Exception $e)
|
||||
{
|
||||
|
||||
return ['message' => $e->getMessage(), 'status_code' => 500];
|
||||
return array_merge($body, ['message' => $e->getMessage(), 'status_code' => 500]);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue