mirror of
https://github.com/umami-software/umami.git
synced 2026-02-23 14:05:35 +01:00
update api to new CH columns
This commit is contained in:
parent
36edbe2f4c
commit
96add409b6
19 changed files with 74 additions and 48 deletions
|
|
@ -18,6 +18,7 @@ export default async (req, res) => {
|
|||
req.query;
|
||||
|
||||
const websiteId = +id;
|
||||
const website_uuid = id;
|
||||
const startDate = new Date(+start_at);
|
||||
const endDate = new Date(+end_at);
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ export default async (req, res) => {
|
|||
}
|
||||
|
||||
const [pageviews, sessions] = await Promise.all([
|
||||
getPageviewStats(websiteId, {
|
||||
getPageviewStats(websiteId, website_uuid, {
|
||||
start_at: startDate,
|
||||
end_at: endDate,
|
||||
timezone: tz,
|
||||
|
|
@ -41,7 +42,7 @@ export default async (req, res) => {
|
|||
country,
|
||||
},
|
||||
}),
|
||||
getPageviewStats(websiteId, {
|
||||
getPageviewStats(websiteId, website_uuid, {
|
||||
start_at: startDate,
|
||||
end_at: endDate,
|
||||
timezone: tz,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue