Skip to content

Commit 45914cd

Browse files
committed
Refactor date comparison in SendReminder command to use whereDate method for improved accuracy
1 parent 7b6d270 commit 45914cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Console/Commands/SendReminder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function handle()
2929
{
3030
$tanggal = date('Y-m-d');
3131
$reminders = DaftarReminder::with('daftarKegiatan')
32-
->where('tanggal', $tanggal)
32+
->whereDate('tanggal', $tanggal)
3333
->whereTime('waktu_kirim', '<=', date('H:i:s'))
3434
->where('status', '!=', 'sent')
3535
->get();

0 commit comments

Comments
 (0)