chore(workspaces): drop defaultLogoIndex (#3898)

This commit is contained in:
Chuck Driesler
2025-01-28 07:56:13 +00:00
committed by GitHub
parent 57751db6d7
commit 35b59ca4f2
22 changed files with 26 additions and 91 deletions
@@ -81,14 +81,7 @@ export const getUserDiscoverableWorkspacesFactory =
}
return (await tables
.workspaces(db)
.select(
'workspaces.id as id',
'name',
'slug',
'description',
'logo',
'defaultLogoIndex'
)
.select('workspaces.id as id', 'name', 'slug', 'description', 'logo')
.distinctOn('workspaces.id')
.join('workspace_domains', 'workspace_domains.workspaceId', 'workspaces.id')
.leftJoin(
@@ -111,7 +104,7 @@ export const getUserDiscoverableWorkspacesFactory =
.where('verified', true)
.where('role', null)) as Pick<
Workspace,
'id' | 'name' | 'slug' | 'description' | 'logo' | 'defaultLogoIndex'
'id' | 'name' | 'slug' | 'description' | 'logo'
>[]
}
@@ -237,7 +230,6 @@ export const upsertWorkspaceFactory =
'description',
'logo',
'slug',
'defaultLogoIndex',
'defaultProjectRole',
'name',
'updatedAt',