Skip to content

Commit

Permalink
fix create query builder on where condition for activity store
Browse files Browse the repository at this point in the history
  • Loading branch information
webdev-dp authored and aryaantony92 committed Sep 14, 2023
1 parent 7f090f6 commit bce18c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ActivityStore/MariaDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/ActivityStore/MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bce18c7

Please sign in to comment.