mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
Replaced SettingsTable with DataTable.
This commit is contained in:
parent
0d9b6e8355
commit
9bb89c7e8b
24 changed files with 134 additions and 381 deletions
|
|
@ -30,7 +30,7 @@ export default async (
|
|||
await useValidate(schema, req, res);
|
||||
|
||||
const { user } = req.auth;
|
||||
const { id: userId, page, query, includeTeams, onlyTeams } = req.query;
|
||||
const { id: userId, page = 1, query = '', includeTeams, onlyTeams } = req.query;
|
||||
|
||||
if (req.method === 'GET') {
|
||||
if (!user.isAdmin && user.id !== userId) {
|
||||
|
|
@ -38,8 +38,8 @@ export default async (
|
|||
}
|
||||
|
||||
const websites = await getWebsitesByUserId(userId, {
|
||||
page: +page,
|
||||
query: query as string,
|
||||
page,
|
||||
query,
|
||||
includeTeams,
|
||||
onlyTeams,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue