Fix for scheduled reports
This commit is contained in:
parent
84a5718f3c
commit
2b4fc357da
1 changed files with 4 additions and 4 deletions
|
|
@ -69,10 +69,6 @@ class RunReport extends Job
|
|||
$report = new $reportClass($startDate, $endDate, $isExport, $config);
|
||||
$report->run();
|
||||
|
||||
if (App::runningInConsole() && $this->user) {
|
||||
auth()->logout();
|
||||
}
|
||||
|
||||
$params = [
|
||||
'startDate' => $startDate,
|
||||
'endDate' => $endDate,
|
||||
|
|
@ -81,6 +77,10 @@ class RunReport extends Job
|
|||
|
||||
$report->exportParams = array_merge($params, $report->results());
|
||||
|
||||
if (App::runningInConsole() && $this->user) {
|
||||
auth()->logout();
|
||||
}
|
||||
|
||||
return $report;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue