Merge pull request 'Added logic to show only in time records in visiotr entries' (#763) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Reviewed-on: #763
This commit was merged in pull request #763.
This commit is contained in:
@@ -450,7 +450,9 @@ class VisitorEntryResource extends Resource
|
||||
|| !empty($data['created_to']);
|
||||
|
||||
if (!$hasAnyFilter) {
|
||||
$query->whereDate('created_at', today());
|
||||
// $query->whereDate('created_at', today());
|
||||
$query->whereDate('visitor_entries.created_at', today())
|
||||
->whereNull('out_time');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user