Tidy frontend typings after review

This commit is contained in:
-LAN-
2025-09-28 14:13:58 +08:00
parent c14f4495c1
commit 40f2bee979
2 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ export const updateUserProfile: Fetcher<CommonResponse, { url: string; body: Rec
return post<CommonResponse>(url, { body })
}
export const logout: Fetcher<CommonResponse, { url: string; body?: Record<string, any>; params?: Record<string, any> }> = ({ url, body }) => {
export const logout: Fetcher<CommonResponse, { url: string; body?: Record<string, any> }> = ({ url, body }) => {
return post<CommonResponse>(url, { body: body ?? {} })
}

View File

@@ -249,8 +249,8 @@ export const useUpdateMCPServer = () => {
export const useRefreshMCPServerCode = () => {
return useMutation({
mutationKey: [NAME_SPACE, 'refresh-mcp-server-code'],
mutationFn: (appID: string) => {
return post<MCPServerDetail>(`apps/${appID}/server/refresh`, {
mutationFn: (serverID: string) => {
return post<MCPServerDetail>(`apps/${serverID}/server/refresh`, {
body: {},
})
},