fix(API): Fix board API details parameter to work as expected

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2023-03-08 07:33:03 +01:00
committed by backportbot-nextcloud[bot]
parent 9cc38000fd
commit 4b0a27d6b5

View File

@@ -60,9 +60,11 @@ class BoardApiController extends ApiController {
* @NoCSRFRequired
*
* Return all of the boards that the current user has access to.
*
* @param bool $details
* @throws StatusException
*/
public function index($details = null) {
public function index(bool $details = false) {
$modified = $this->request->getHeader('If-Modified-Since');
if ($modified === null || $modified === '') {
$boards = $this->boardService->findAll(0, $details === true);