From d86307327cf94ee6e6f44f318617e756021a18e4 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 15 Oct 2021 14:12:06 +0200 Subject: [PATCH] fix error in LocationApiController customizeQuery --- src/Bundle/ChillMainBundle/Controller/LocationApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'") ))