(queryClient: QueryClient)
| 1929 | }); |
| 1930 | |
| 1931 | export const updateChatUsageLimitConfig = (queryClient: QueryClient) => ({ |
| 1932 | mutationFn: (req: TypesGen.ChatUsageLimitConfig) => |
| 1933 | API.experimental.updateChatUsageLimitConfig(req), |
| 1934 | onSuccess: async () => { |
| 1935 | await queryClient.invalidateQueries({ |
| 1936 | queryKey: chatUsageLimitConfigKey, |
| 1937 | }); |
| 1938 | }, |
| 1939 | }); |
| 1940 | |
| 1941 | type UpsertChatUsageLimitOverrideMutationArgs = { |
| 1942 | userID: string; |
no test coverage detected