mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 19:15:37 +01:00
Add back pageSize.
This commit is contained in:
parent
d5c4202ee4
commit
9732d0e6ef
8 changed files with 24 additions and 10 deletions
|
|
@ -41,7 +41,13 @@ export default async (
|
|||
return unauthorized(res);
|
||||
}
|
||||
|
||||
const websites = await getWebsitesByTeamId(teamId, { ...req.query });
|
||||
const { page, query, pageSize } = req.query;
|
||||
|
||||
const websites = await getWebsitesByTeamId(teamId, {
|
||||
page,
|
||||
query,
|
||||
pageSize: +pageSize || undefined,
|
||||
});
|
||||
|
||||
return ok(res, websites);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue