develop-jenkins
parent
7e6a0a2a1b
commit
88b3d8aaa9
|
@ -38,6 +38,12 @@ class InstallOgLiveResponseAction extends AbstractController
|
|||
{
|
||||
$data = json_decode($request->getContent(), true);
|
||||
|
||||
if (!is_array($data)) {
|
||||
return new JsonResponse(['error' => 'Invalid JSON data'], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
|
||||
$data = $data['webhookData'];
|
||||
|
||||
if ($data === null || !isset($data['message'], $data['ogCoreId'], $data['status'])) {
|
||||
return new JsonResponse(['error' => 'Invalid or incomplete JSON data'], Response::HTTP_BAD_REQUEST);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue