diff --git a/app/Utils/Traits/SubscriptionHooker.php b/app/Utils/Traits/SubscriptionHooker.php index 0e7663d571..ce32a9e638 100644 --- a/app/Utils/Traits/SubscriptionHooker.php +++ b/app/Utils/Traits/SubscriptionHooker.php @@ -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]); }