Skip to content

Commit

Permalink
Rename purgeHistoryDataset to purgeDataset...
Browse files Browse the repository at this point in the history
... per David's comment.
  • Loading branch information
jmchilton committed Mar 27, 2024
1 parent 77ef4a3 commit 40a2203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/api/datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -72,6 +72,6 @@ export async function undeleteDatasetById(datasetId: string): Promise<ItemSizeSu
}

export async function purgeDatasetById(datasetId: string): Promise<PurgeableItemSizeSummary> {
const data = await purgeHistoryDataset(datasetId);
const data = await purgeDataset(datasetId);
return data as unknown as PurgeableItemSizeSummary;
}

0 comments on commit 40a2203

Please sign in to comment.