Skip to content

Commit

Permalink
test more task stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rjackson committed Apr 7, 2024
1 parent d61f86b commit 9703a4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ protected function schedule(Schedule $schedule)
$schedule
->command(Commands\BillMembers::class)
->dailyAt('01:30')
->then(function ($result) use ($telegram) {
$message = "✅ Billed members: " . $result['gc_users'] . " GC users, " . $result['gc_users_blled'] . " bills created.";
->then(function () use ($telegram) {
$message = "✅ Billed members.";
\Log::info($message);
$telegram->notify(
TelegramHelper::JOB,
Expand All @@ -75,7 +75,7 @@ protected function schedule(Schedule $schedule)

$schedule
->command(Commands\TestScheduledTask::class)
->hourlyAt(43)
->hourlyAt(47)
->then(function () use ($telegram) {
$message = "✔️ Test Scheduled Task successfully ran (notification from 'then' hook)";
\Log::info($message);
Expand All @@ -87,7 +87,7 @@ protected function schedule(Schedule $schedule)

$schedule
->command(Commands\Payments\CheckForPossibleDuplicates::class)
->dailyAt('15:43')->timezone('Europe/London')
->dailyAt('15:47')->timezone('Europe/London')
->emailOutputTo('board@hacman.org.uk', true);
}
}

0 comments on commit 9703a4a

Please sign in to comment.