IPC acumulado desde cli
This commit is contained in:
@ -92,7 +92,7 @@ class Money
|
||||
if ($end > $now) {
|
||||
return $this->withJson($response, $output);
|
||||
}
|
||||
$dateKey = "{$start->format('Y-m')}-{$end->format('Y-m')}";
|
||||
$dateKey = "{$start->format('Y-m')}|{$end->format('Y-m')}";
|
||||
$output['date_string'] = $dateKey;
|
||||
$output['ipc'] = $ipcService->get($start, $end);
|
||||
return $this->withJson($response, $output);
|
||||
|
@ -17,7 +17,7 @@ class IPC
|
||||
if ($to > $now) {
|
||||
return 0;
|
||||
}
|
||||
$dateKey = "{$from->format('Y-m')}-{$to->format('Y-m')}";
|
||||
$dateKey = "{$from->format('Y-m')}|{$to->format('Y-m')}";
|
||||
$ipcs = [];
|
||||
try {
|
||||
$ipcs = json_decode($this->redisService->get($this->redisKey), JSON_OBJECT_AS_ARRAY);
|
||||
|
Reference in New Issue
Block a user