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

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/30235/head
Joas Schilling 2021-12-13 09:28:35 +07:00
parent fcb3e9a071
commit b59df35426
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 0 additions and 3 deletions

@ -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();