Omit type from constraint in profile queries where appropriate

This commit is contained in:
Eric Bailey
2025-01-02 14:54:25 -06:00
parent a9e6164d29
commit 1c956a2348
+4 -4
View File
@@ -220,7 +220,7 @@ export function useProfileUpdateMutation() {
} }
export function useProfileFollowMutationQueue( export function useProfileFollowMutationQueue(
profile: Shadow<AppBskyActorDefs.ProfileViewDetailed>, profile: Shadow<Omit<AppBskyActorDefs.ProfileViewDetailed, '$type'>>,
logContext: LogEvents['profile:follow']['logContext'] & logContext: LogEvents['profile:follow']['logContext'] &
LogEvents['profile:follow']['logContext'], LogEvents['profile:follow']['logContext'],
) { ) {
@@ -294,7 +294,7 @@ export function useProfileFollowMutationQueue(
function useProfileFollowMutation( function useProfileFollowMutation(
logContext: LogEvents['profile:follow']['logContext'], logContext: LogEvents['profile:follow']['logContext'],
profile: Shadow<AppBskyActorDefs.ProfileViewDetailed>, profile: Shadow<Omit<AppBskyActorDefs.ProfileViewDetailed, '$type'>>,
) { ) {
const {currentAccount} = useSession() const {currentAccount} = useSession()
const agent = useAgent() const agent = useAgent()
@@ -334,7 +334,7 @@ function useProfileUnfollowMutation(
} }
export function useProfileMuteMutationQueue( export function useProfileMuteMutationQueue(
profile: Shadow<AppBskyActorDefs.ProfileViewDetailed>, profile: Shadow<Omit<AppBskyActorDefs.ProfileViewDetailed, '$type'>>,
) { ) {
const queryClient = useQueryClient() const queryClient = useQueryClient()
const did = profile.did const did = profile.did
@@ -409,7 +409,7 @@ function useProfileUnmuteMutation() {
} }
export function useProfileBlockMutationQueue( export function useProfileBlockMutationQueue(
profile: Shadow<AppBskyActorDefs.ProfileViewBasic>, profile: Shadow<Omit<AppBskyActorDefs.ProfileViewBasic, '$type'>>,
) { ) {
const queryClient = useQueryClient() const queryClient = useQueryClient()
const did = profile.did const did = profile.did