Skip to content

Commit

Permalink
fix(AdminController)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 27, 2024
1 parent 6778d44 commit 36e9ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function gputensorflow(): JSONResponse {
}

public function cron(): JSONResponse {
$cron = \OCP\Server::get(IConfig::class)->getAppValue('core', 'backgroundjobs_mode', '');
$cron = \OC::$server->getRegisteredAppContainer('core')->get(IAppConfig::class)->getAppValue('core', 'backgroundjobs_mode', '');
return new JSONResponse(['cron' => $cron]);
}

Expand Down

2 comments on commit 36e9ae1

@baka0815
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcelklehr it looks like this change broke the detection of cron on my local nextcloud (28.0.2) installation.
It says that background jobs are not run via cron, but they are and the last run was in fact 10h ago.

@marcelklehr
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. Thank you for reporting!

Please sign in to comment.