diff --git a/apps/renderer/src/modules/discover/list-form.tsx b/apps/renderer/src/modules/discover/list-form.tsx index ccfb346d17..36b0c9f571 100644 --- a/apps/renderer/src/modules/discover/list-form.tsx +++ b/apps/renderer/src/modules/discover/list-form.tsx @@ -208,13 +208,14 @@ const ListInnerForm = ({ }, [subscription]) const followMutation = useMutation({ - mutationFn: async (values: z.infer<typeof formSchema>) => { + mutationFn: async (values: z.infer<typeof formSchema> & { TOTPCode?: string }) => { const body = { listId: list.id, view: Number.parseInt(values.view), category: values.category, isPrivate: values.isPrivate, title: values.title, + TOTPCode: values.TOTPCode, } const $method = isSubscribed ? apiClient.subscriptions.$patch : apiClient.subscriptions.$post diff --git a/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx b/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx index ad427fcc92..cad4a4f37c 100644 --- a/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx +++ b/apps/renderer/src/modules/power/my-wallet-section/withdraw.tsx @@ -73,10 +73,12 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => { address, amount, toRss3, + TOTPCode, }: { address: string amount: number toRss3?: boolean + TOTPCode?: string }) => { const amountBigInt = from(amount, 18)[0] await apiClient.wallets.transactions.withdraw.$post({ @@ -84,6 +86,7 @@ const WithdrawModalContent = ({ dismiss }: { dismiss: () => void }) => { address, amount: amountBigInt.toString(), toRss3, + TOTPCode, }, }) }, diff --git a/apps/renderer/src/queries/rsshub.ts b/apps/renderer/src/queries/rsshub.ts index 31cf73e66e..f4d5f76bfe 100644 --- a/apps/renderer/src/queries/rsshub.ts +++ b/apps/renderer/src/queries/rsshub.ts @@ -9,7 +9,7 @@ import type { MutationBaseProps } from "./types" export const useSetRSSHubMutation = ({ onError }: MutationBaseProps = {}) => useMutation({ - mutationFn: (data: { id: string | null; durationInMonths?: number }) => + mutationFn: (data: { id: string | null; durationInMonths?: number; TOTPCode?: string }) => apiClient.rsshub.use.$post({ json: data }), onSuccess: (_, variables) => {