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 Feb 29, 2024
1 parent e3eff30 commit db13da5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ public function gputensorflow(): JSONResponse {
}

public function cron(): JSONResponse {
$cron = \OC::$server->getRegisteredAppContainer('core')->get(IAppConfig::class)->getAppValue('core', 'backgroundjobs_mode', '');
/** @var IAppConfig $appConfig */
$appConfig = \OC::$server->getRegisteredAppContainer('core')->get(IAppConfig::class);
$cron = $appConfig->getAppValue('backgroundjobs_mode', '');
return new JSONResponse(['cron' => $cron]);
}

Expand Down

0 comments on commit db13da5

Please sign in to comment.