Add proper default value for since to fetch boards that have no last_modified date yet

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2019-04-25 14:06:49 +02:00
parent bbd7fd8535
commit 05102aa1dc

View File

@@ -101,7 +101,7 @@ class BoardService {
/**
* @return array
*/
public function findAll($since = 0, $details = null) {
public function findAll($since = -1, $details = null) {
$userInfo = $this->getBoardPrerequisites();
$userBoards = $this->boardMapper->findAllByUser($userInfo['user'], null, null, $since);
$groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'],null, null, $since);