mirror of
https://github.com/langgenius/dify.git
synced 2025-12-19 22:28:46 +00:00
Tidy frontend typings after review
This commit is contained in:
@@ -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 ?? {} })
|
||||
}
|
||||
|
||||
|
||||
@@ -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: {},
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user