Skip to content

Commit 12ea8eb

Browse files
CarlSchwanbackportbot[bot]
authored andcommitted
fix(CleanupLoginTokens): Specify the table
Otherwise the query fails Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 6f0dd5e commit 12ea8eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/User/BackgroundJobs/CleanupLoginTokens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function run($argument): void {
3030
$rememberMeMaxAge = $this->config->getSystemValueInt('remember_login_cookie_lifetime', 60 * 60 * 24 * 15);
3131
$qb = $this->connection->getQueryBuilder();
3232
$qb
33-
->delete()
33+
->delete('preferences')
3434
->where($qb->expr()->eq('appid', $qb->expr()->literal('login_token')))
3535
->andWhere($qb->expr()->lt('configvalue', $qb->createNamedParameter(time() - $rememberMeMaxAge)))
3636
->executeStatement();

0 commit comments

Comments
 (0)