Fix for regression in Handler.php

This commit is contained in:
David Bomba 2021-06-04 08:30:21 +10:00
parent d213b4e2dd
commit e17ff7dbfd

View File

@ -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]);
}