From 6cee8574556efeb94049a9d63f3fd1e101b2e86d Mon Sep 17 00:00:00 2001 From: Harshith Mohan Date: Wed, 3 Apr 2024 21:33:10 +0530 Subject: [PATCH] Remove unnecessary plex endpoint cache invalidation (#847) --- src/core/react-query/plex/mutations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/react-query/plex/mutations.ts b/src/core/react-query/plex/mutations.ts index 4a1f951c5..d7434f307 100644 --- a/src/core/react-query/plex/mutations.ts +++ b/src/core/react-query/plex/mutations.ts @@ -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'] }), });