From c759afc10d21628775f73700f75634dc771f457c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 25 Aug 2025 11:28:57 +0200 Subject: [PATCH] :fire: Remove unnecessary and broken unique-editors field From the get-teams rpc method response --- backend/src/app/rpc/commands/teams.clj | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/backend/src/app/rpc/commands/teams.clj b/backend/src/app/rpc/commands/teams.clj index 95fa381146..a099223b83 100644 --- a/backend/src/app/rpc/commands/teams.clj +++ b/backend/src/app/rpc/commands/teams.clj @@ -142,18 +142,7 @@ ELSE COALESCE(p.props->'~:subscription'->>'~:status', 'incomplete') END, '~:seats', p.props->'~:subscription'->'~:quantity' - ) AS subscription, - - (SELECT count(distinct p.id) - FROM team_profile_rel AS tpr1 - JOIN team_profile_rel AS tpr2 - ON (tpr1.team_id = tpr2.team_id) - JOIN profile AS p - ON (tpr2.profile_id = p.id) - WHERE tpr1.profile_id = p.id - AND tpr1.is_owner IS true - AND tpr2.can_edit IS true) AS unique_editors - + ) AS subscription FROM team_profile_rel AS tp JOIN team AS t ON (t.id = tp.team_id) JOIN team_profile_rel AS tpr