Enable new integration auth for each new integration

This commit is contained in:
Tuan Dang
2024-01-07 12:49:59 +01:00
parent fef5369738
commit 5287b322d8
9 changed files with 132 additions and 51 deletions
@@ -96,6 +96,7 @@ export const useDeleteIntegration = () => {
mutationFn: ({ id }) => apiRequest.delete(`/api/v1/integration/${id}`),
onSuccess: (_, { workspaceId }) => {
queryClient.invalidateQueries(workspaceKeys.getWorkspaceIntegrations(workspaceId));
queryClient.invalidateQueries(workspaceKeys.getWorkspaceAuthorization(workspaceId));
}
});
};