mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Update metric tables when filtering on referrer
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
bb7d26d19f
commit
35f9c7ef6c
3 changed files with 13 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ export default async (req, res) => {
|
|||
return unauthorized(res);
|
||||
}
|
||||
|
||||
const { id, type, start_at, end_at, url } = req.query;
|
||||
const { id, type, start_at, end_at, url, referrer } = req.query;
|
||||
|
||||
const websiteId = +id;
|
||||
const startDate = new Date(+start_at);
|
||||
|
|
@ -75,6 +75,7 @@ export default async (req, res) => {
|
|||
{
|
||||
domain,
|
||||
url: type !== 'url' && url,
|
||||
referrer: referrer,
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue