Make the DB query simpler (as we just deleted all other entries)

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-12-13 09:28:35 +01:00
parent 3532802a3c
commit 4fe5cef95a
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -82,9 +82,6 @@ class DatabaseBackend implements IBackend {
->from(self::TABLE_NAME)
->where(
$qb->expr()->eq('hash', $qb->createNamedParameter($identifier, IQueryBuilder::PARAM_STR))
)
->andWhere(
$qb->expr()->gte('delete_after', $qb->createNamedParameter($currentTime, IQueryBuilder::PARAM_DATE))
);
$cursor = $qb->executeQuery();