card dashboard

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-05-20 11:18:23 +02:00
committed by Julius Härtl
parent cba260fefd
commit 3c5f68e0c3
13 changed files with 516 additions and 1 deletions

View File

@@ -564,4 +564,28 @@ class CardService {
'\OCA\Deck\Card::onUpdate', new FTSEvent(null, ['id' => $cardId, 'card' => $card])
);
}
/**
*
* @return array
* @throws \OCA\Deck\NoPermissionException
* @throws BadRequestException
*/
public function findAllWithDue($userId) {
$cards = $this->cardMapper->findAllWithDue($userId);
return $cards;
}
/**
*
* @return array
* @throws \OCA\Deck\NoPermissionException
* @throws BadRequestException
*/
public function findMyAssignedCards($userId) {
$cards = $this->cardMapper->findMyAssignedCards($userId);
return $cards;
}
}