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 Mar 1, 2024
1 parent 8582abf commit 51beddb
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 @@ -278,7 +278,7 @@ public function cron(): JSONResponse {
$appConfig = \OC::$server->getRegisteredAppContainer('core')->get(IAppConfig::class);
$cron = $appConfig->getAppValueString('backgroundjobs_mode', '');
} catch (QueryException|AppConfigTypeConflictException $e) {
new JSONResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
return new JSONResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
return new JSONResponse(['cron' => $cron]);
}
Expand Down

0 comments on commit 51beddb

Please sign in to comment.