Skip to content

Commit

Permalink
Remove unnecessary plex endpoint cache invalidation (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Apr 3, 2024
1 parent 80eebd3 commit 6cee857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/react-query/plex/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import queryClient from '@/core/react-query/queryClient';
export const useInvalidatePlexTokenMutation = () =>
useMutation({
mutationFn: () => axios.get('token/invalidate'),
onSuccess: () => queryClient.resetQueries({ queryKey: ['plex'] }),
onSuccess: () => queryClient.resetQueries({ queryKey: ['plex', 'status'] }),
});

0 comments on commit 6cee857

Please sign in to comment.