mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
[api] add notifications
This commit is contained in:
@@ -75,8 +75,8 @@ class AttendanceRepository extends BaseRepository
|
||||
->where('uid', $uid)
|
||||
->orderBy('id', 'desc');
|
||||
if (!empty($date)) {
|
||||
$query->where('added', '>=', Carbon::today())
|
||||
->where('added', '<', Carbon::tomorrow());
|
||||
$query->where('added', '>=', Carbon::parse($date)->startOfDay())
|
||||
->where('added', '<=', Carbon::parse($date)->endOfDay());
|
||||
}
|
||||
return $query->first();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user