diff --git a/compass/app/Jobs/TripComplete.php b/compass/app/Jobs/TripComplete.php index f2a9d99..874a800 100644 --- a/compass/app/Jobs/TripComplete.php +++ b/compass/app/Jobs/TripComplete.php @@ -126,6 +126,11 @@ class TripComplete extends Job implements SelfHandling, ShouldQueue $endDate->setTimeZone(new DateTimeZone($end->timezone)); } + if($endDate->format('U') - $startDate->format('U') < 15) { + Log::info("Skipping trip since it was too short"); + return; + } + $params = [ 'h' => 'entry', 'published' => $endDate->format('c'),