gitscope
← marzneshin / Diff · 42b5c17 → 42b5c17
Changes 42b5c17..42b5c17
Patch commit
diff --git a/dashboard/src/features/hosts/services/create-host.mutate.ts b/dashboard/src/features/hosts/services/create-host.mutate.ts
index 8798fb0..23ec6d3 100644
--- a/dashboard/src/features/hosts/services/create-host.mutate.ts
+++ b/dashboard/src/features/hosts/services/create-host.mutate.ts
@@ -1,4 +1,4 @@
-import { HostType, HostsQueryFetchKey } from "@marzneshin/features/hosts";
+import { HostType } from "@marzneshin/features/hosts";
import { useMutation } from "@tanstack/react-query";
import { fetch, queryClient } from "@marzneshin/utils";
import { toast } from "sonner";
@@ -24,7 +24,7 @@ const handleSuccess = (value: HostRequestDto) => {
{
description: i18n.t('events.create.success.desc')
})
- queryClient.invalidateQueries({ queryKey: [HostsQueryFetchKey] })
+ queryClient.invalidateQueries({ queryKey: ["inbounds"] })
}
diff --git a/dashboard/src/features/hosts/services/delete-host.mutate.ts b/dashboard/src/features/hosts/services/delete-host.mutate.ts
index 2f520e4..4983928 100644
--- a/dashboard/src/features/hosts/services/delete-host.mutate.ts
+++ b/dashboard/src/features/hosts/services/delete-host.mutate.ts
@@ -1,5 +1,4 @@
-
-import { HostType, HostsQueryFetchKey } from "@marzneshin/features/hosts";
+import { HostType } from "@marzneshin/features/hosts";
import { useMutation } from "@tanstack/react-query";
import { fetch, queryClient } from "@marzneshin/utils";
import { toast } from "sonner";
@@ -28,7 +27,7 @@ const handleSuccess = (value: HostType) => {
{
description: i18n.t('events.delete.success.desc')
})
- queryClient.invalidateQueries({ queryKey: [HostsQueryFetchKey] })
+ queryClient.invalidateQueries({ queryKey: ["inbounds"] })
}
export const useHostsDeletionMutation = () => {
diff --git a/dashboard/src/features/hosts/services/update-host.mutate.ts b/dashboard/src/features/hosts/services/update-host.mutate.ts
index b980fd9..9cab76f 100644
--- a/dashboard/src/features/hosts/services/update-host.mutate.ts
+++ b/dashboard/src/features/hosts/services/update-host.mutate.ts
@@ -1,4 +1,4 @@
-import { HostType, HostsQueryFetchKey } from "@marzneshin/features/hosts";
+import { HostType } from "@marzneshin/features/hosts";
import { useMutation } from "@tanstack/react-query";
import { fetch, queryClient } from "@marzneshin/utils";
import { toast } from "sonner";
@@ -24,7 +24,7 @@ const handleSuccess = (value: HostUpdateRequestDto) => {
{
description: i18n.t('events.update.success.desc')
})
- queryClient.invalidateQueries({ queryKey: [HostsQueryFetchKey] })
+ queryClient.invalidateQueries({ queryKey: ["inbounds"] })
}