diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-13 09:28:35 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-10 14:21:13 +0100 |
commit | 4fe5cef95a7b508a7ddf6eb21335363d984da3a6 (patch) | |
tree | 45b9a83b1e35d53eca5313c56fad80acbdd4ebb7 | |
parent | 3532802a3cccd880c82fe85796a3f7f548e3a251 (diff) | |
download | nextcloud-server-4fe5cef95a7b508a7ddf6eb21335363d984da3a6.tar.gz nextcloud-server-4fe5cef95a7b508a7ddf6eb21335363d984da3a6.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.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(); |