Skip to content

Commit

Permalink
Merge pull request #2981 from pinkli/master
Browse files Browse the repository at this point in the history
bugfix: events count amend #2980
  • Loading branch information
mikecao authored Sep 26, 2024
2 parents 2707b39 + 659cfb4 commit 214396f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queries/analytics/sessions/getWebsiteSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function relationalQuery(websiteId: string, sessionId: string) {
min(website_event.created_at) as min_time,
max(website_event.created_at) as max_time,
sum(case when website_event.event_type = 1 then 1 else 0 end) as views,
sum(case when website_event.event_type = 1 then 1 else 0 end) as events
sum(case when website_event.event_type = 2 then 1 else 0 end) as events
from session
join website_event on website_event.session_id = session.session_id
where session.website_id = {{websiteId::uuid}}
Expand Down

0 comments on commit 214396f

Please sign in to comment.