feat(api): project conditions foss to ee
This commit is contained in:
parent
50614ac2ae
commit
35ed2c9c70
1 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,8 @@ def get_projects(tenant_id: int, gdpr: bool = False, recorded: bool = False, use
|
|||
|
||||
query = cur.mogrify(f"""{"SELECT *, first_recorded IS NOT NULL AS recorded FROM (" if recorded else ""}
|
||||
SELECT s.project_id, s.name, s.project_key, s.save_request_payloads, s.first_recorded_session_at,
|
||||
s.created_at, s.sessions_last_check_at, s.sample_rate, s.platform
|
||||
s.created_at, s.sessions_last_check_at, s.sample_rate, s.platform,
|
||||
(SELECT count(*) FROM projects_conditions WHERE project_id = s.project_id) AS conditions_count
|
||||
{extra_projection}
|
||||
FROM public.projects AS s
|
||||
{role_query if user_id is not None else ""}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue