Browse Source

WIP: map-monitoring API

pull/3/head
ardhi 2 years ago
parent
commit
a835dbaa3d
  1. 2
      app/Models/MapMonitoring.php

2
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();

Loading…
Cancel
Save