fix: types

This commit is contained in:
DIYgod 2025-10-29 21:28:17 +08:00
parent 7927526691
commit d0a7ca9db1
No known key found for this signature in database
4 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,7 @@ export const useAIMemoryListQuery = (params: MemoryListQuery = {}) => {
const response = await followApi.ai.memory.list({
...params,
limit,
// @ts-expect-error TODO: fix type
before: pageParam ?? undefined,
})

View File

@ -49,7 +49,7 @@ function FeedSelectionOperationScreen() {
.findLast((m) => m.parts?.some((p) => p.type === "tool-onboardingGetTrendingFeeds"))
?.parts?.findLast((p) => p.type === "tool-onboardingGetTrendingFeeds")?.output
return output ? (decode(output) as FeedToSelect[]) : []
return typeof output === "string" ? (decode(output) as any[]) : []
}, [chatMessages])
const store = useStore()

View File

@ -42,6 +42,8 @@ export const UserAvatar = ({ className }: { className?: string }) => {
updatedAt: new Date().toISOString(),
twoFactorEnabled: false,
deleted: false,
inactive: false,
lastLoginMethod: "github",
}
} else {
return null

View File

@ -278,6 +278,8 @@ class APIMorph {
roleEndAt: data.roleEndAt,
deleted: data.deleted,
stripeCustomerId: data.stripeCustomerId,
inactive: data.inactive,
lastLoginMethod: data.lastLoginMethod,
}
}
}