diff --git a/src/Bundle/ChillMainBundle/Controller/LocationApiController.php b/src/Bundle/ChillMainBundle/Controller/LocationApiController.php index 89c508716..4e0e9d2d2 100644 --- a/src/Bundle/ChillMainBundle/Controller/LocationApiController.php +++ b/src/Bundle/ChillMainBundle/Controller/LocationApiController.php @@ -18,7 +18,7 @@ class LocationApiController extends ApiController $query->andWhere($query->expr()->orX( $query->expr()->andX( $query->expr()->eq('e.createdBy', ':user'), - $query->expr()->eq('e.createdAt', ':dateBefore') + $query->expr()->gte('e.createdAt', ':dateBefore') ), $query->expr()->eq('e.availableForUsers', "'TRUE'") ))