mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 01:46:58 +01:00
add orderby to query.
This commit is contained in:
parent
41eed2c056
commit
ae82e531b1
@ -44,8 +44,6 @@ export default async (
|
|||||||
return unauthorized(res);
|
return unauthorized(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
const { query, page, pageSize } = req.query;
|
|
||||||
|
|
||||||
const users = await getTeamUsers(
|
const users = await getTeamUsers(
|
||||||
{
|
{
|
||||||
where: {
|
where: {
|
||||||
@ -63,11 +61,7 @@ export default async (
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
req.query,
|
||||||
query,
|
|
||||||
page,
|
|
||||||
pageSize,
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return ok(res, users);
|
return ok(res, users);
|
||||||
|
@ -39,13 +39,7 @@ export default async (
|
|||||||
return unauthorized(res);
|
return unauthorized(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
const { page, query, pageSize } = req.query;
|
const teams = await getUserTeams(userId as string, req.query);
|
||||||
|
|
||||||
const teams = await getUserTeams(userId as string, {
|
|
||||||
query,
|
|
||||||
page,
|
|
||||||
pageSize,
|
|
||||||
});
|
|
||||||
|
|
||||||
return ok(res, teams);
|
return ok(res, teams);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user