From 40a220359be59ad091a91b38c4ed967e6eda7bd7 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 25 Mar 2024 14:01:15 -0400 Subject: [PATCH] Rename purgeHistoryDataset to purgeDataset... ... per David's comment. --- client/src/api/datasets.ts | 2 +- .../src/components/User/DiskUsage/Visualizations/service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/api/datasets.ts b/client/src/api/datasets.ts index 120555901521..914a87a21651 100644 --- a/client/src/api/datasets.ts +++ b/client/src/api/datasets.ts @@ -62,7 +62,7 @@ export async function undeleteHistoryDataset(datasetId: string) { const deleteDataset = fetcher.path("/api/datasets/{dataset_id}").method("delete").create(); -export async function purgeHistoryDataset(datasetId: string) { +export async function purgeDataset(datasetId: string) { const { data } = await deleteDataset({ dataset_id: datasetId, purge: true }); return data; } diff --git a/client/src/components/User/DiskUsage/Visualizations/service.ts b/client/src/components/User/DiskUsage/Visualizations/service.ts index e88481eca64f..e656f0014cb0 100644 --- a/client/src/components/User/DiskUsage/Visualizations/service.ts +++ b/client/src/components/User/DiskUsage/Visualizations/service.ts @@ -1,4 +1,4 @@ -import { datasetsFetcher, purgeHistoryDataset, undeleteHistoryDataset } from "@/api/datasets"; +import { datasetsFetcher, purgeDataset, undeleteHistoryDataset } from "@/api/datasets"; import { archivedHistoriesFetcher, deleteHistory, historiesFetcher, undeleteHistory } from "@/api/histories"; export interface ItemSizeSummary { @@ -72,6 +72,6 @@ export async function undeleteDatasetById(datasetId: string): Promise { - const data = await purgeHistoryDataset(datasetId); + const data = await purgeDataset(datasetId); return data as unknown as PurgeableItemSizeSummary; }