harmonize since and before search params

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
Julien Veyssier
2021-10-04 17:10:34 +02:00
parent ca04efb736
commit 7425d00ba5
4 changed files with 31 additions and 12 deletions

View File

@@ -118,7 +118,7 @@ class BoardService {
/**
* Get all boards that are shared with a user, their groups or circles
*/
public function getUserBoards(int $since = -1, bool $includeArchived = true, ?int $before = null): array {
public function getUserBoards(?int $since = null, bool $includeArchived = true, ?int $before = null): array {
return $this->boardMapper->findAllForUser($this->userId, $since, $includeArchived, $before);
}