From 7685ce09a25a1235cc0598cde9946a7e72ebbd76 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Fri, 7 Apr 2023 14:09:44 +0100 Subject: [PATCH] feat(chalice): fixed file_key serialization issue --- ee/api/chalicelib/core/sessions_replay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ee/api/chalicelib/core/sessions_replay.py b/ee/api/chalicelib/core/sessions_replay.py index 319eb13b6..fcbce92eb 100644 --- a/ee/api/chalicelib/core/sessions_replay.py +++ b/ee/api/chalicelib/core/sessions_replay.py @@ -112,6 +112,7 @@ def get_replay(project_id, session_id, context: schemas.CurrentContext, full_dat SELECT s.*, s.session_id::text AS session_id, + encode(file_key,'hex') AS file_key, (SELECT project_key FROM public.projects WHERE project_id = %(project_id)s LIMIT 1) AS project_key {"," if len(extra_query) > 0 else ""}{",".join(extra_query)} {(",json_build_object(" + ",".join([f"'{m}',p.{m}" for m in metadata.column_names()]) + ") AS project_metadata") if group_metadata else ''}