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 25, 2024
1 parent 7ad5ee8 commit b009309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use OCP\BackgroundJob\IJobList;
use OCP\DB\Exception;
use OCP\IBinaryFinder;
use OCP\IConfig;
use OCP\IRequest;

class AdminController extends Controller {
Expand Down Expand Up @@ -271,7 +272,7 @@ public function gputensorflow(): JSONResponse {
}

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

Expand Down

0 comments on commit b009309

Please sign in to comment.