mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 11:24:28 -04:00
Fix for scheduled reports
This commit is contained in:
parent
b814e5281f
commit
7a1c5adc6e
@ -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…
x
Reference in New Issue
Block a user