aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-12-06 14:52:13 +0100
committerjld3103 <jld3103yt@gmail.com>2023-12-06 14:52:17 +0100
commit310832ade9036147a61b51e893d8c84c719d0387 (patch)
treec10dbfdb2e3c46d26a47b5919fbd955c370dbe83 /apps/dashboard
parente1ecf798d9ccce0b5d0c1b90d6cd93e22c2d9588 (diff)
downloadnextcloud-server-310832ade9036147a61b51e893d8c84c719d0387.tar.gz
nextcloud-server-310832ade9036147a61b51e893d8c84c719d0387.zip
chore(dashboard): Add limit range to items v1 API
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/dashboard')
-rw-r--r--apps/dashboard/lib/Controller/DashboardApiController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php
index c95979e667d..a28e1140fc2 100644
--- a/apps/dashboard/lib/Controller/DashboardApiController.php
+++ b/apps/dashboard/lib/Controller/DashboardApiController.php
@@ -101,6 +101,7 @@ class DashboardApiController extends OCSController {
*
* @param array<string, string> $sinceIds Array indexed by widget Ids, contains date/id from which we want the new items
* @param int $limit Limit number of result items per widget
+ * @psalm-param int<1, 30> $limit
* @param string[] $widgets Limit results to specific widgets
* @return DataResponse<Http::STATUS_OK, array<string, DashboardWidgetItem[]>, array{}>
*