Add missing field on get-teams rpc method

This commit is contained in:
Andrey Antukh 2025-07-07 12:37:16 +02:00
parent 44e3e4a641
commit c8fef97598

View file

@ -139,7 +139,8 @@
'~:status', CASE COALESCE(p.props->'~:subscription'->>'~:type', 'professional')
WHEN 'professional' THEN 'active'
ELSE COALESCE(p.props->'~:subscription'->>'~:status', 'incomplete')
END
END,
'~:seats', p.props->'~:quantity'
) AS subscription
FROM team_profile_rel AS tp
JOIN team AS t ON (t.id = tp.team_id)