feat: renamed old frontend and fixed some minor bugs

This commit is contained in:
=
2025-01-06 14:56:49 +05:30
parent 8c902d7699
commit 54377a44d3
2577 changed files with 35240 additions and 35116 deletions
+2 -2
View File
@@ -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) });
}
});
};