feat: include logo_url in organization API response
This commit is contained in:
parent
2e9ab46be8
commit
203349023d
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue