From faa95c577d176e82e0548cd6a0d0d8881700e479 Mon Sep 17 00:00:00 2001 From: Robbie Date: Sat, 8 Jun 2024 10:12:56 +0100 Subject: [PATCH] fix(product-analytics): Fix debug clickhouse queries on localhost (#22816) * Fix debug clickhouse queries on localhost * Fix formatting --------- Co-authored-by: Julian Bez --- posthog/api/query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/posthog/api/query.py b/posthog/api/query.py index 5c651bfe74fc1..1ecb03c86ae52 100644 --- a/posthog/api/query.py +++ b/posthog/api/query.py @@ -80,6 +80,7 @@ def create(self, request, *args, **kwargs) -> Response: data.query, execution_mode=execution_mode, query_id=client_query_id, + user=request.user, ) if isinstance(result, BaseModel): result = result.model_dump(by_alias=True)