From 403a9bebcf896ae8e175d1f51daa939eb42a6425 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 6 Feb 2024 10:06:50 -0500 Subject: [PATCH] Update client/src/api/histories.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David López <46503462+davelopez@users.noreply.github.com> --- client/src/api/histories.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/api/histories.ts b/client/src/api/histories.ts index e3b8765e1898..da0564f0ab43 100644 --- a/client/src/api/histories.ts +++ b/client/src/api/histories.ts @@ -7,7 +7,4 @@ export const deleteHistories = fetcher.path("/api/histories/batch/delete").metho export const undeleteHistory = fetcher.path("/api/histories/deleted/{history_id}/undelete").method("post").create(); export const undeleteHistories = fetcher.path("/api/histories/batch/undelete").method("put").create(); export const historiesQuery = fetcher.path("/api/histories/query").method("get").create(); - -export function getPublishedHistories() { - return historiesFetcher({ view: "details", q: ["published"], qv: ["True"] }); -} +export const publishedHistoriesFetcher = fetcher.path("/api/histories/published").method("get").create();