Skip to content

Commit a524abb

Browse files
snomiaoCopilot
andcommitted
Update app/api/router.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7c6b984 commit a524abb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/api/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export const router = t.router({
4646
}),
4747
getRepoUrls: t.procedure
4848
.meta({ openapi: { method: "GET", path: "/repo-urls", description: "Get repo urls with pagination" } })
49-
.input(z.object({ skip: z.number().min(0).default(0), limit: z.number().min(1).max(5000).default(1000) }).partial())
49+
.input(z.object({ skip: z.number().min(0).default(0), limit: z.number().min(1).max(5000).default(1000) }))
5050
.output(z.object({ repos: z.array(z.string()), total: z.number(), skip: z.number(), limit: z.number() }))
51-
.query(async ({ input: { skip = 0, limit = 1000 } }) => {
51+
.query(async ({ input: { skip, limit } }) => {
5252
const sflow = (await import("sflow")).default;
5353
const { CNRepos } = await import("@/src/CNRepos");
5454
const [repos, total] = await Promise.all([

0 commit comments

Comments
 (0)