Skip to content

Commit 887ef42

Browse files
committed
Refactor active date comparison to use whereDate method for improved accuracy
1 parent d1c304e commit 887ef42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Helpers/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ public static function getUsersByPengelola($role, $tanggal)
747747
$usersIdByPengelola = Pengelola::cache()
748748
->get('all')
749749
->where('role', $role)
750-
->where('active', '<', $tanggal)
750+
->whereDate('active', '<', $tanggal)
751751
->reject(function ($item) use ($tanggal) {
752752
return $item['inactive'] && $item['inactive'] < $tanggal;
753753
})

0 commit comments

Comments
 (0)