Fixed a bad warning appearing sometimes

This commit is contained in:
Pinga 2024-09-20 15:49:05 +03:00
parent da8b974a05
commit 0c2a0afb05

View file

@ -193,7 +193,7 @@ $app->any('/api[/{params:.*}]', function (
}
$_SESSION['user'] = $_SESSION['auth_username'];
},
'customization.afterHandler' => function ($operation, $tableName, &$response, $environment) {
'customization.afterHandler' => function ($operation, $tableName, $response, $environment) {
$bodyContent = (string) $response->getBody();
$response->getBody()->rewind();
$data = json_decode($bodyContent, true);