Skip to content

Commit

Permalink
chore: change default used_by amount
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Oct 25, 2023
1 parent d5f99ee commit ec2fe7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(main)/used_by/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function Show() {
const searchParams = useSearchParams()
const pathname = usePathname()
const router = useRouter()
const perPage = parseInt(searchParams.get("per_page") || "24")
const perPage = parseInt(searchParams.get("per_page") || "12")
const { data, error, isLoading } = useSWR<{
data: UsedRepoInfo[]
total: number
Expand Down
2 changes: 1 addition & 1 deletion app/api/used_by/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { usedBy } from "../github"
export async function GET(req: NextRequest) {
try {
const searchParams = req.nextUrl.searchParams
const per_page = parseInt(searchParams.get("per_page") || "24")
const per_page = parseInt(searchParams.get("per_page") || "12")
const page = parseInt(searchParams.get("page") || "1")
const users = usedBy(per_page, page)
return NextResponse.json(users)
Expand Down

0 comments on commit ec2fe7f

Please sign in to comment.