Skip to content

Commit

Permalink
fix(chalice): deduplicate viewed-sessions (openreplay#2105)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0c5f8b4)
  • Loading branch information
tahayk committed Apr 18, 2024
1 parent 035d116 commit ac5f465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/api/chalicelib/core/sessions_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def search_sessions(data: schemas.SessionsSearchPayloadSchema, project_id, user_
s.{sort} AS sort_key,
map({SESSION_PROJECTION_COLS_CH_MAP}{meta_map}) AS details
{query_part}
LEFT JOIN (SELECT session_id
LEFT JOIN (SELECT DISTINCT session_id
FROM experimental.user_viewed_sessions
WHERE user_id = %(userId)s AND project_id=%(project_id)s
AND _timestamp >= toDateTime(%(startDate)s / 1000)) AS viewed_sessions
Expand Down

0 comments on commit ac5f465

Please sign in to comment.