Skip to content

Commit

Permalink
Rename undeleteHistoryDataset for consistency.
Browse files Browse the repository at this point in the history
Per PR review request.
  • Loading branch information
jmchilton committed Mar 28, 2024
1 parent a29a21a commit 14fdf99
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 @@ -51,7 +51,7 @@ export async function fetchDatasetDetails(params: { id: string }): Promise<Datas

const updateDataset = fetcher.path("/api/datasets/{dataset_id}").method("put").create();

export async function undeleteHistoryDataset(datasetId: string) {
export async function undeleteDataset(datasetId: string) {
const { data } = await updateDataset({
dataset_id: datasetId,
type: "dataset",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { datasetsFetcher, purgeDataset, undeleteHistoryDataset } from "@/api/datasets";
import { datasetsFetcher, purgeDataset, undeleteDataset } from "@/api/datasets";
import { archivedHistoriesFetcher, deleteHistory, historiesFetcher, undeleteHistory } from "@/api/histories";

export interface ItemSizeSummary {
Expand Down Expand Up @@ -75,7 +75,7 @@ export async function purgeHistoryById(historyId: string): Promise<PurgeableItem
}

export async function undeleteDatasetById(datasetId: string): Promise<ItemSizeSummary> {
const data = await undeleteHistoryDataset(datasetId);
const data = await undeleteDataset(datasetId);
return data as unknown as ItemSizeSummary;
}

Expand Down

0 comments on commit 14fdf99

Please sign in to comment.