diff --git a/src/lib/Persistence/Legacy/Token/Handler.php b/src/lib/Persistence/Legacy/Token/Handler.php index b212a83da5..652bc6e512 100644 --- a/src/lib/Persistence/Legacy/Token/Handler.php +++ b/src/lib/Persistence/Legacy/Token/Handler.php @@ -137,7 +137,7 @@ public function deleteExpiredTokens(?string $tokenType = null): void { try { if (null !== $tokenType) { - $typeId = $this->getTokenType($tokenType); + $typeId = $this->getTokenType($tokenType)->id; } } catch (NotFoundException $exception) { return;