Skip to content

Commit

Permalink
Import class
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti authored May 2, 2020
1 parent a1ec0bf commit cdaa038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Console;

use App\Mail\WeeklyReport;
use App\Report;
use App\Slack;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
Expand Down Expand Up @@ -30,7 +31,7 @@ protected function schedule(Schedule $schedule)
{
$isLatestWorkingDay = function () {
$today = now(config('app.report_timezone'));
$lastWorkingDay = App\Report::lastWorkingDayOfWeek();
$lastWorkingDay = Report::lastWorkingDayOfWeek();

return $today->isSameDay($lastWorkingDay);
};
Expand Down

0 comments on commit cdaa038

Please sign in to comment.