aboutsummaryrefslogtreecommitdiffstats
path: root/apps/oauth2
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-10-07 17:36:55 +0200
committerprovokateurin <kate@provokateurin.de>2024-10-08 11:26:53 +0200
commit54ec472d9a2c8a3d3c5daf0594bb887b11a81614 (patch)
tree98660989fcc8c32c938491e7da51ea3afbea5fa3 /apps/oauth2
parentd7aff6c1500fb85269945064d4c34085c4240425 (diff)
downloadnextcloud-server-54ec472d9a2c8a3d3c5daf0594bb887b11a81614.tar.gz
nextcloud-server-54ec472d9a2c8a3d3c5daf0594bb887b11a81614.zip
fix(BackgroundJobs): Adjust intervals and time sensitivities
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/oauth2')
-rw-r--r--apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php b/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php
index d1647381ffa..b819a45ace2 100644
--- a/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php
+++ b/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php
@@ -12,7 +12,6 @@ namespace OCA\OAuth2\BackgroundJob;
use OCA\OAuth2\Db\AccessTokenMapper;
use OCP\AppFramework\Utility\ITimeFactory;
-use OCP\BackgroundJob\IJob;
use OCP\BackgroundJob\TimedJob;
use OCP\DB\Exception;
use Psr\Log\LoggerInterface;
@@ -27,7 +26,7 @@ class CleanupExpiredAuthorizationCode extends TimedJob {
parent::__construct($timeFactory);
// 30 days
$this->setInterval(60 * 60 * 24 * 30);
- $this->setTimeSensitivity(IJob::TIME_INSENSITIVE);
+ $this->setTimeSensitivity(self::TIME_INSENSITIVE);
}
/**