Remove team and user id

This commit is contained in:
Alex Holliday committed 2025-06-13 12:16:52 +08:00
1 parent c32cde6189
commit 5e23a2b79c
8 files changed
+11 -14

No files matched your search

+2 -2
View File
@@ -414,10 +414,10 @@ const useDeleteAllMonitors = () => {
const UseDeleteMonitorStats = () => {
const { t } = useTranslation();
const [isLoading, setIsLoading] = useState(false);
const deleteMonitorStats = async ({ teamId }) => {
const deleteMonitorStats = async () => {
setIsLoading(true);
try {
const res = await networkService.deleteChecksByTeamId({ teamId });
await networkService.deleteChecksByTeamId();
createToast({ body: t("settingsStatsCleared") });
} catch (error) {
createToast({ body: t("settingsFailedToClearStats") });