diff --git a/app/Console/Commands/SendReminder.php b/app/Console/Commands/SendReminder.php index 487396ea..002ecd79 100644 --- a/app/Console/Commands/SendReminder.php +++ b/app/Console/Commands/SendReminder.php @@ -30,8 +30,7 @@ public function handle() $tanggal = date('Y-m-d'); $reminders = DaftarReminder::with('daftarKegiatan') ->where('tanggal', $tanggal) - - + ->where('status', '!=', 'sent') ->get(); foreach ($reminders as $reminder) { diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index ecd1e585..001f9ac1 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -107,7 +107,7 @@ class Helper '04:00:00' => '04:00', '05:00:00' => '05:00', '06:00:00' => '06:00', - '07:00:00' => '07:00', + '07:00:00' => '07:00', ]; public static $jenis_perjalanan = [ diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 2b24081a..6aa7bdb1 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -27,6 +27,5 @@ public function boot(): void ->allowedFor('admin') ->get(); }); - } } diff --git a/app/Providers/NovaServiceProvider.php b/app/Providers/NovaServiceProvider.php index a40880cd..f7724040 100644 --- a/app/Providers/NovaServiceProvider.php +++ b/app/Providers/NovaServiceProvider.php @@ -296,6 +296,5 @@ public function tools() public function register() { parent::register(); - } } diff --git a/config/pulse.php b/config/pulse.php index 114697de..b2d5686d 100644 --- a/config/pulse.php +++ b/config/pulse.php @@ -1,13 +1,11 @@ time('waktu_kirim') - ->after('tanggal') - ->nullable(); + ->after('tanggal') + ->nullable(); }); } diff --git a/routes/console.php b/routes/console.php index b1f0d8f0..4bd11a12 100644 --- a/routes/console.php +++ b/routes/console.php @@ -13,4 +13,4 @@ ->runInBackground(); Schedule::command('pulse:check')->hourly() ->withoutOverlapping() - ->runInBackground(); \ No newline at end of file + ->runInBackground();