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
@@ -76,7 +76,6 @@ type WorkspaceCreateArgs = {
slug?: string | null
description: string | null
logo: string | null
defaultLogoIndex: number
}
userResourceAccessLimits: MaybeNullOrUndefined<TokenResourceIdentifier[]>
}
@@ -22,10 +22,7 @@ export const getDiscoverableWorkspacesForUserFactory =
async ({
userId
}: GetDiscoverableWorkspaceForUserArgs): Promise<
Pick<
Workspace,
'id' | 'name' | 'slug' | 'description' | 'logo' | 'defaultLogoIndex'
>[]
Pick<Workspace, 'id' | 'name' | 'slug' | 'description' | 'logo'>[]
> => {
const userEmails = await findEmailsByUserId({ userId })
const userVerifiedDomains = userEmails