refs #624. Changed endpoint comandosPendientes
parent
f848c2691e
commit
6094431a38
|
@ -115,7 +115,7 @@ class OgAdmClientController extends AbstractController
|
|||
// Simula obtener comandos pendientes
|
||||
$param = $this->buscaComandos($data['ido']);
|
||||
|
||||
if (is_null($param)) {
|
||||
if (!$param) {
|
||||
return new JsonResponse(['nfn' => 'NoComandosPtes'], Response::HTTP_OK);
|
||||
}
|
||||
|
||||
|
@ -146,8 +146,8 @@ class OgAdmClientController extends AbstractController
|
|||
return true;
|
||||
}
|
||||
|
||||
private function buscaComandos($ido)
|
||||
private function buscaComandos($ido): null
|
||||
{
|
||||
return ['nfn' => 'popup', 'title' => 'my title', 'message' => 'my message', 'ids' => 42];
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue