diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-13 09:28:35 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-01-28 16:55:17 +0100 |
commit | b59df354264f713a3403365fc08954a896fa2627 (patch) | |
tree | 2bb5275a387bda795fec9de22a8d89fb1b1c2c1d /lib/private/Security/RateLimiting | |
parent | fcb3e9a0712b3ffe0a0a6de6c3083515b4d531e9 (diff) | |
download | nextcloud-server-b59df354264f713a3403365fc08954a896fa2627.tar.gz nextcloud-server-b59df354264f713a3403365fc08954a896fa2627.zip |
Make the DB query simpler (as we just deleted all other entries)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Security/RateLimiting')
-rw-r--r-- | lib/private/Security/RateLimiting/Backend/DatabaseBackend.php | 3 |
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(); |