File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ protected function process(): void
83
83
$ this ->writer ->addRow ($ this ->header ());
84
84
85
85
$ template = $ this ->config ->template ();
86
- $ defaultSort = "{$ template ->get ('table ' )}. {$ template ->get ('dtRowId ' )}" ;
86
+ $ sort = "{$ template ->get ('table ' )}. {$ template ->get ('dtRowId ' )}" ;
87
87
88
88
$ 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 " ),
91
91
];
92
92
93
93
['start ' => $ start , 'end ' => $ end ] = $ this ->query ->clone ()
@@ -96,8 +96,8 @@ protected function process(): void
96
96
97
97
while ($ start <= $ end ) {
98
98
$ chunk = $ this ->query ->clone ()
99
- ->where ($ defaultSort , '>= ' , $ start )
100
- ->where ($ defaultSort , '< ' , $ start += $ this ->optimalChunk )
99
+ ->where ($ sort , '>= ' , $ start )
100
+ ->where ($ sort , '< ' , $ start += $ this ->optimalChunk )
101
101
->get ();
102
102
103
103
if ($ chunk ->isNotEmpty ()) {
You can’t perform that action at this time.
0 commit comments