Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Add missing parameters.

Brian Cao94a27226d1e3
diff --git a/src/pages/api/users/[id]/websites.ts b/src/pages/api/users/[id]/websites.ts
index 261704723..4eb659c8c 100644
--- a/src/pages/api/users/[id]/websites.ts
+++ b/src/pages/api/users/[id]/websites.ts
@@ -30,7 +30,15 @@ export default async (
await useValidate(schema, req, res);
const { user } = req.auth;
- const { id: userId, page = 1, query = '', includeTeams, onlyTeams } = req.query;
+ const {
+ id: userId,
+ page = 1,
+ pageSize,
+ orderBy,
+ query = '',
+ includeTeams,
+ onlyTeams,
+ } = req.query;
if (req.method === 'GET') {
if (!user.isAdmin && user.id !== userId) {
@@ -39,7 +47,9 @@ export default async (
const websites = await getWebsitesByUserId(userId, {
page,
+ pageSize,
query,
+ orderBy,
includeTeams,
onlyTeams,
});