mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 11:05:36 +01:00
use uuid
This commit is contained in:
parent
b0bed5e73a
commit
c147742d7a
18 changed files with 84 additions and 52 deletions
|
|
@ -11,9 +11,18 @@ export default async (req, res) => {
|
|||
return unauthorized(res);
|
||||
}
|
||||
|
||||
const { website_id, start_at, end_at, url, referrer, os, browser, device, country } = req.query;
|
||||
const {
|
||||
id: websiteId,
|
||||
start_at,
|
||||
end_at,
|
||||
url,
|
||||
referrer,
|
||||
os,
|
||||
browser,
|
||||
device,
|
||||
country,
|
||||
} = req.query;
|
||||
|
||||
const websiteId = +website_id;
|
||||
const startDate = new Date(+start_at);
|
||||
const endDate = new Date(+end_at);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue