Skip to content

Commit

Permalink
Cleanup redundant functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Feb 11, 2024
1 parent 6b49752 commit 8067714
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ChangeFilter/Shared/DatabaseChangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,14 @@ protected function getQueryParameters(): array

protected function getQuery(string $table, int $limit): string
{
$query = "SELECT c.OXID
return "SELECT c.OXID
FROM {$table} c
WHERE " . $this->getQueryCondition() . " AND c.OXTIMESTAMP > COALESCE(
(SELECT MAX(modified) FROM fa_sitemap WHERE object_type = :object_type),
'1970-01-01'
)
ORDER BY c.OXTIMESTAMP ASC
ORDER BY c.OXTIMESTAMP
LIMIT {$limit}";
return $query;
}

protected function getQueryCondition(): string
Expand Down

0 comments on commit 8067714

Please sign in to comment.