Starter: use correct profile types

This commit is contained in:
Eric Bailey
2025-01-07 16:40:37 -06:00
parent 085492ee66
commit ea4c2dea6e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ export const createStarterPackList = async ({
name: string name: string
description?: string description?: string
descriptionFacets?: Facet[] descriptionFacets?: Facet[]
profiles: AppBskyActorDefs.ProfileViewBasic[] profiles: AppBskyActorDefs.ProfileView[]
agent: BskyAgent agent: BskyAgent
}): Promise<{uri: string; cid: string}> => { }): Promise<{uri: string; cid: string}> => {
if (profiles.length === 0) throw new Error('No profiles given') if (profiles.length === 0) throw new Error('No profiles given')
@@ -68,8 +68,8 @@ export function useGenerateStarterPackMutation({
return useMutation<{uri: string; cid: string}, Error, void>({ return useMutation<{uri: string; cid: string}, Error, void>({
mutationFn: async () => { mutationFn: async () => {
let profile: AppBskyActorDefs.ProfileViewBasic | undefined let profile: AppBskyActorDefs.ProfileViewDetailed | undefined
let profiles: AppBskyActorDefs.ProfileViewBasic[] | undefined let profiles: AppBskyActorDefs.ProfileView[] | undefined
await Promise.all([ await Promise.all([
(async () => { (async () => {
+1 -1
View File
@@ -93,7 +93,7 @@ export async function invalidateStarterPack({
interface UseCreateStarterPackMutationParams { interface UseCreateStarterPackMutationParams {
name: string name: string
description?: string description?: string
profiles: AppBskyActorDefs.ProfileViewBasic[] profiles: AppBskyActorDefs.ProfileView[]
feeds?: AppBskyFeedDefs.GeneratorView[] feeds?: AppBskyFeedDefs.GeneratorView[]
} }