mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
fix: query when seeing detail of field
This commit is contained in:
parent
8e5da12653
commit
118e1a5b70
3 changed files with 46 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ export default async (
|
|||
await useAuth(req, res);
|
||||
|
||||
if (req.method === 'GET') {
|
||||
const { websiteId, startAt, endAt, field, withEventNames } = req.query;
|
||||
const { websiteId, startAt, endAt, field, event, withEventNames } = req.query;
|
||||
|
||||
if (!(await canViewWebsite(req.auth, websiteId))) {
|
||||
return unauthorized(res);
|
||||
|
|
@ -32,6 +32,7 @@ export default async (
|
|||
new Date(+startAt),
|
||||
new Date(+endAt),
|
||||
field,
|
||||
event,
|
||||
withEventNames,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue