|
@ -8,6 +8,7 @@ use DB; |
|
|
use Quartz; |
|
|
use Quartz; |
|
|
use Log; |
|
|
use Log; |
|
|
use DateTime, DateTimeZone; |
|
|
use DateTime, DateTimeZone; |
|
|
|
|
|
use App\Jobs\TripComplete; |
|
|
|
|
|
|
|
|
class Api extends BaseController |
|
|
class Api extends BaseController |
|
|
{ |
|
|
{ |
|
@ -121,8 +122,8 @@ class Api extends BaseController |
|
|
if(array_key_exists('type', $loc['properties']) && $loc['properties']['type'] == 'trip') { |
|
|
if(array_key_exists('type', $loc['properties']) && $loc['properties']['type'] == 'trip') { |
|
|
try { |
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->dispatch(new TripComplete($db->id, $loc)); |
|
|
|
|
|
|
|
|
$trips++; |
|
|
$trips++; |
|
|
|
|
|
|
|
|
} catch(Exception $e) { |
|
|
} catch(Exception $e) { |
|
|