summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-13 09:28:35 +0100
committerJoas Schilling <coding@schilljs.com>2022-03-10 14:12:39 +0100
commite527a2ad45f85a3357129fdbfb02fbeb22579ca7 (patch)
treeaecd6faec16b89e967d6c158f91b4e4a62cb3308
parent17f32cab0c68273ad2670212e749b348cd1b3037 (diff)
downloadnextcloud-server-e527a2ad45f85a3357129fdbfb02fbeb22579ca7.tar.gz
nextcloud-server-e527a2ad45f85a3357129fdbfb02fbeb22579ca7.zip
Make the DB query simpler (as we just deleted all other entries)
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Security/RateLimiting/Backend/DatabaseBackend.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php b/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
index 1415b5c4131..ea4bd87d6cd 100644
--- a/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
+++ b/lib/private/Security/RateLimiting/Backend/DatabaseBackend.php
@@ -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();