feat: include logo_url in organization API response

This commit is contained in:
Arthur Belleville 2026-04-02 22:04:27 +02:00
parent 2e9ab46be8
commit 203349023d
No known key found for this signature in database

View file

@ -296,7 +296,7 @@ const getOrganization = factory.createHandlers(async (c) => {
const { data: organization, error: organizationError } = await supabase
.from("organizations")
.select("id, name")
.select("id, name, logo_url")
.eq("id", organizationId)
.single();
@ -420,6 +420,7 @@ const getOrganization = factory.createHandlers(async (c) => {
organization: {
id: organization.id,
name: organization.name,
logo_url: organization.logo_url ?? null,
plan,
member_count: members?.length || 0,
tablo_count: tabloCount || 0,