Skip to content

Commit c95ceae

Browse files
committed
update
1 parent 0a05a13 commit c95ceae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/web/app/api/github/repos/route.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NextRequest, NextResponse } from "next/server";
22
import { getCachedGitHubRepos } from "@/lib/github/cached-api";
33
import { getRepoToken } from "@/lib/github/get-repo-token";
4-
import { getCachedInstallationRepositories } from "@/lib/github/installation-repos";
4+
import { fetchInstallationRepositoriesByInstallation } from "@/lib/github/installation-repos";
55
import { getServerSession } from "@/lib/session/get-server-session";
66

77
export 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
}

0 commit comments

Comments
 (0)