doge 1 день назад
Родитель
Сommit
118e1f6397
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Reporting/ReportReader.php

+ 1 - 1
app/Services/Reporting/ReportReader.php

@@ -69,7 +69,7 @@ class ReportReader
             foreach ($rows as $i => &$row) $row['rank'] = $i + 1; unset($row);
         } else usort($rows, fn ($a, $b) => bccomp((string) $b['bet_amount'], (string) $a['bet_amount'], 10) ?: strcmp($a['group_id'], $b['group_id']));
         $total = count($rows); $rows = array_slice($rows, ((int) $p['page'] - 1) * (int) $p['limit'], (int) $p['limit']);
-        return $result['meta'] + ['total' => $total, 'data' => $rows];
+        return $result['meta'] + ['total' => $total, 'data' => $rows, 'unallocated' => $result['unallocated'] ?? null];
     }
 
     public function funds(array $input): array