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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fix query param pass through.
Brian Caoca6da03a0bbe
diff --git a/src/pages/api/users/[id]/websites.ts b/src/pages/api/users/[id]/websites.tsindex ab8fedfb5..b5ca5cdb0 100644--- a/src/pages/api/users/[id]/websites.ts+++ b/src/pages/api/users/[id]/websites.ts@@ -30,15 +30,7 @@ export default async (await useValidate(schema, req, res);const { user } = req.auth;- const {- id: userId,- page = 1,- pageSize,- orderBy,- query = '',- includeTeams,- onlyTeams,- } = req.query;+ const { id: userId, page = 1, pageSize, query = '', ...rest } = req.query;if (req.method === 'GET') {if (!user.isAdmin && user.id !== userId) {@@ -49,9 +41,7 @@ export default async (page,pageSize: +pageSize || undefined,query,- orderBy,- includeTeams,- onlyTeams,+ ...rest,});return ok(res, websites);