Error log cuotas
This commit is contained in:
@ -37,7 +37,11 @@ class Cuotas
|
||||
{
|
||||
$output = [];
|
||||
try {
|
||||
$benchmark = [
|
||||
'start' => microtime(true)
|
||||
];
|
||||
$cuotas = $cuotaRepository->fetchDatosPorVencer();
|
||||
$benchmark['cuotas'] = microtime(true) - $benchmark['start'];
|
||||
foreach ($cuotas as $row) {
|
||||
$fecha = $row['Fecha'];
|
||||
$date = new DateTimeImmutable($fecha);
|
||||
@ -61,6 +65,8 @@ class Cuotas
|
||||
});
|
||||
$output[$key] = $day;
|
||||
}
|
||||
$benchmark['run'] = microtime(true) - $benchmark['start'];
|
||||
error_log(var_export($benchmark,true));
|
||||
} catch (EmptyResult) {}
|
||||
return $this->withJson($response, ['cuotas' => $output]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user