diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-02-16 21:17:10 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-02-20 13:57:09 +0100 |
commit | 4a107b3d53c4fe651ac704251b99e04a53cd587f (patch) | |
tree | 9700c89992f1ad739023d73fcd434250c323089e /lib/Controller/ItemApiController.php | |
parent | 01e1db329ced43323654990828744d577cac4ba8 (diff) |
General: Fix folder query
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Controller/ItemApiController.php')
-rw-r--r-- | lib/Controller/ItemApiController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Controller/ItemApiController.php b/lib/Controller/ItemApiController.php index 003c61fa2..5f9da73a6 100644 --- a/lib/Controller/ItemApiController.php +++ b/lib/Controller/ItemApiController.php @@ -15,7 +15,7 @@ namespace OCA\News\Controller; -use OCA\News\Db\FeedType; +use OCA\News\Db\ListType; use OCA\News\Service\Exceptions\ServiceConflictException; use OCA\News\Service\Exceptions\ServiceValidationException; use OCA\News\Service\ItemServiceV2; @@ -73,7 +73,7 @@ class ItemApiController extends ApiController bool $oldestFirst = false ): array { switch ($type) { - case FeedType::FEED: + case ListType::FEED: $items = $this->itemService->findAllInFeedWithFilters( $this->getUserId(), $id, @@ -83,7 +83,7 @@ class ItemApiController extends ApiController $oldestFirst ); break; - case FeedType::FOLDER: + case ListType::FOLDER: $items = $this->itemService->findAllInFolderWithFilters( $this->getUserId(), $id, @@ -130,10 +130,10 @@ class ItemApiController extends ApiController } switch ($type) { - case FeedType::FEED: + case ListType::FEED: $items = $this->itemService->findAllInFeedAfter($this->getUserId(), $id, $paddedLastModified, false); break; - case FeedType::FOLDER: + case ListType::FOLDER: $items = $this->itemService->findAllInFolderAfter($this->getUserId(), $id, $paddedLastModified, false); break; default: |