UPDATE: New business rule, if query param 'data' not sending, return json_encode error.
This commit is contained in:
parent
1eeff13eeb
commit
0466303277
|
|
@ -21,7 +21,7 @@ class ReportController
|
|||
$connection = $this->reportsModel->dbConnect();
|
||||
|
||||
if (!isset($queryParams['data'])) {
|
||||
return new Response(403, ['Content-Type' => 'application/json'], json_encode(['error' => 'O parâmetro "data" não foi enviado corretamente, ou não existe. Tente novamente']), JSON_UNESCAPED_UNICODE);
|
||||
return new Response(403, ['Content-Type' => 'application/json'], json_encode(['error' => 'O parâmetro "data" não foi enviado corretamente, ou não existe. Tente novamente'], JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue