Remove duplicate Segment call

This commit is contained in:
James Brooks
2015-05-28 08:25:21 +01:00
parent d29b872fee
commit bc01c0bb63

View File

@@ -47,16 +47,6 @@ class HomeController extends AbstractController
'start_date' => $oldDate->format('Y-m-d'),
]);
if (Setting::get('app_tracking')) {
Segment::track([
'userId' => Config::get('app.key'),
'event' => 'Home Page',
'properties' => [
'start_date' => $oldDate,
],
]);
}
// If trying to get a future date fallback to today
if ($today->gt($oldDate)) {
$startDate = $oldDate;