refactor: cleanup git provider router

This commit is contained in:
Mauricio Siu
2024-09-01 19:47:21 -06:00
parent 32ebd9b3b9
commit d261fd4efe
11 changed files with 3734 additions and 89 deletions

View File

@@ -79,7 +79,7 @@ export const SaveGithubProvider = ({ applicationId }: Props) => {
const githubId = form.watch("githubId");
const { data: repositories, isLoading: isLoadingRepositories } =
api.gitProvider.getRepositories.useQuery({
api.gitProvider.getGithubRepositories.useQuery({
githubId,
});
@@ -87,7 +87,7 @@ export const SaveGithubProvider = ({ applicationId }: Props) => {
data: branches,
fetchStatus,
status,
} = api.gitProvider.getBranches.useQuery(
} = api.gitProvider.getGithubBranches.useQuery(
{
owner: repository?.owner,
repo: repository?.repo,