UPDATE: New business rule, if query param 'data' not sending, return json_encode error.

This commit is contained in:
lukibeg 2025-10-22 22:50:42 -03:00
parent 1eeff13eeb
commit 0466303277
1 changed files with 1 additions and 1 deletions

View File

@ -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 {