feat: [code-288]: file commit history - p2

This commit is contained in:
calvin 2023-06-05 15:53:32 -06:00
parent 24b3ec9fe9
commit 057996811e
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ export function FileContent({
const [page, setPage] = usePageIndex()
const { data: commits, response } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({
path: `/api/v1/repos/${repoMetadata?.path}/+/commitsV2`,
path: `/api/v1/repos/${repoMetadata?.path}/+/commits`,
queryParams: {
limit: LIST_FETCHING_LIMIT,
page,

View File

@ -17,7 +17,7 @@ const RenameContentHistory = (props: { rename_details: RenameDetails[], repoMeta
const [fileVisibility, setFileVisibility] = useState(initialFileVisibility || {});
const [page, setPage] = usePageIndex();
const { data: commits, response, refetch: getCommitHistory } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({
path: `/api/v1/repos/${repoMetadata?.path}/+/commitsV2`,
path: `/api/v1/repos/${repoMetadata?.path}/+/commits`,
lazy: true
});