From a835dbaa3d31bd01ceb8043fbe6f70506813411e Mon Sep 17 00:00:00 2001 From: ardhi Date: Sun, 12 Feb 2023 15:16:53 +0700 Subject: [PATCH] WIP: map-monitoring API --- app/Models/MapMonitoring.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/MapMonitoring.php b/app/Models/MapMonitoring.php index a5e5fba..50f9fee 100644 --- a/app/Models/MapMonitoring.php +++ b/app/Models/MapMonitoring.php @@ -24,7 +24,7 @@ class MapMonitoring extends Model { $users = DB::table($this->table) ->select('id', 'user_id', 'clock_in', 'clock_out', 'clock_in_lat', 'clock_in_lng', 'clock_out_lat', 'clock_out_lng', 'clock_in_loc', 'clock_out_loc', 'clock_in_boundary', 'clock_out_boundary') - ->whereBetween('created_at', [$payload->timeFrom, $payload->timeTo]) + ->whereBetween('created_at', [$payload->time_from, $payload->time_to]) ->orderBy('created_at', 'desc') ->get();