Skip to content

Commit c6ce8af

Browse files
committed
rename
1 parent 38b8379 commit c6ce8af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Exports/Excel.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ protected function process(): void
8383
$this->writer->addRow($this->header());
8484

8585
$template = $this->config->template();
86-
$defaultSort = "{$template->get('table')}.{$template->get('dtRowId')}";
86+
$sort = "{$template->get('table')}.{$template->get('dtRowId')}";
8787

8888
$ends = [
89-
DB::raw("min({$defaultSort}) as start"),
90-
DB::raw("max({$defaultSort}) as end"),
89+
DB::raw("min({$sort}) as start"),
90+
DB::raw("max({$sort}) as end"),
9191
];
9292

9393
['start' => $start, 'end' => $end] = $this->query->clone()
@@ -96,8 +96,8 @@ protected function process(): void
9696

9797
while ($start <= $end) {
9898
$chunk = $this->query->clone()
99-
->where($defaultSort, '>=', $start)
100-
->where($defaultSort, '<', $start += $this->optimalChunk)
99+
->where($sort, '>=', $start)
100+
->where($sort, '<', $start += $this->optimalChunk)
101101
->get();
102102

103103
if ($chunk->isNotEmpty()) {

0 commit comments

Comments
 (0)