File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
apps/web/app/api/github/repos Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import { NextRequest , NextResponse } from "next/server" ;
22import { getCachedGitHubRepos } from "@/lib/github/cached-api" ;
33import { getRepoToken } from "@/lib/github/get-repo-token" ;
4- import { getCachedInstallationRepositories } from "@/lib/github/installation-repos" ;
4+ import { fetchInstallationRepositoriesByInstallation } from "@/lib/github/installation-repos" ;
55import { getServerSession } from "@/lib/session/get-server-session" ;
66
77export async function GET ( request : NextRequest ) {
@@ -45,12 +45,12 @@ export async function GET(request: NextRequest) {
4545
4646 try {
4747 if ( tokenResult . type === "installation" ) {
48- const repos = await getCachedInstallationRepositories ( {
49- installationId : tokenResult . installationId ,
48+ const repos = await fetchInstallationRepositoriesByInstallation (
49+ tokenResult . installationId ,
5050 owner ,
51- limit,
5251 query ,
53- } ) ;
52+ limit ,
53+ ) ;
5454
5555 return NextResponse . json ( repos ) ;
5656 }
You can’t perform that action at this time.
0 commit comments