1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Use Tasks as query key

This commit is contained in:
viown 2025-03-04 10:36:05 +03:00
parent 53a1cb413b
commit 709378f986
7 changed files with 14 additions and 18 deletions

View file

@ -3,7 +3,7 @@ import { getScheduledTasksApi } from '@jellyfin/sdk/lib/utils/api/scheduled-task
import { useMutation } from '@tanstack/react-query';
import { useApi } from 'hooks/useApi';
import { queryClient } from 'utils/query/queryClient';
import { QueryKey } from './queryKey';
import { QUERY_KEY } from './useTasks';
export const useStopTask = () => {
const { api } = useApi();
@ -15,7 +15,7 @@ export const useStopTask = () => {
),
onSuccess: () => {
void queryClient.invalidateQueries({
queryKey: [ QueryKey.Tasks ]
queryKey: [ QUERY_KEY ]
});
}
});