From bce18c719359502ed1db777e0e3e388bca42af22 Mon Sep 17 00:00:00 2001 From: Refaat Al Ktifan Date: Wed, 6 Sep 2023 16:02:52 +0200 Subject: [PATCH] fix create query builder on where condition for activity store --- src/ActivityStore/MariaDb.php | 3 ++- src/ActivityStore/MySQL.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ActivityStore/MariaDb.php b/src/ActivityStore/MariaDb.php index b2fdbdd8..b0099117 100644 --- a/src/ActivityStore/MariaDb.php +++ b/src/ActivityStore/MariaDb.php @@ -283,7 +283,8 @@ public function getActivitiesDataForWebservice($pageSize, $page, ExportActivitie ->addOrderBy('activityDate', 'asc'); if ($ts = $params->getModifiedSinceTimestamp()) { - $select->where('modificationDate >= ?', $ts); + $select->where('modificationDate >= ?'); + $select->setParameters([$ts]); } $paginator = $this->paginator->paginate($select, $page, $pageSize); diff --git a/src/ActivityStore/MySQL.php b/src/ActivityStore/MySQL.php index 298b63df..e42c0902 100644 --- a/src/ActivityStore/MySQL.php +++ b/src/ActivityStore/MySQL.php @@ -151,7 +151,8 @@ public function getActivitiesDataForWebservice($pageSize, $page, ExportActivitie ->addOrderBy('activityDate', 'asc'); if ($ts = $params->getModifiedSinceTimestamp()) { - $select->where('modificationDate >= ?', $ts); + $select->where('modificationDate >= ?'); + $select->setParameters([$ts]); } $paginator = $this->paginator->paginate($select, $page, $pageSize);