mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 21:40:31 +00:00
feat: renamed old frontend and fixed some minor bugs
This commit is contained in:
@@ -23,7 +23,7 @@ export const useGetWorkspaceBot = (workspaceId: string) =>
|
||||
export const useUpdateBotActiveStatus = () => {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
return useMutation<{}, {}, TSetBotActiveStatusDto>({
|
||||
return useMutation<object, object, TSetBotActiveStatusDto>({
|
||||
mutationFn: ({ botId, isActive, botKey }) => {
|
||||
return apiRequest.patch(`/api/v1/bot/${botId}/active`, {
|
||||
isActive,
|
||||
@@ -31,7 +31,7 @@ export const useUpdateBotActiveStatus = () => {
|
||||
});
|
||||
},
|
||||
onSuccess: (_, { workspaceId }) => {
|
||||
queryClient.invalidateQueries(queryKeys.getBot(workspaceId));
|
||||
queryClient.invalidateQueries({ queryKey: queryKeys.getBot(workspaceId) });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user