Skip to content

Commit be2cbfd

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

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
@@ -59,9 +59,9 @@ export const router = t.router({
5959
.query(async ({ input: { limit = 0, skip = 0 } }) => (await analyzePullsStatus({ limit, skip })) as any),
6060
getRepoUrls: t.procedure
6161
.meta({ openapi: { method: "GET", path: "/repo-urls", description: "Get repo urls with pagination" } })
62-
.input(z.object({ skip: z.number().min(0).default(0), limit: z.number().min(1).max(5000).default(1000) }).partial())
62+
.input(z.object({ skip: z.number().min(0).default(0), limit: z.number().min(1).max(5000).default(1000) }))
6363
.output(z.object({ repos: z.array(z.string()), total: z.number(), skip: z.number(), limit: z.number() }))
64-
.query(async ({ input: { skip = 0, limit = 1000 } }) => {
64+
.query(async ({ input: { skip, limit } }) => {
6565
const [repos, total] = await Promise.all([
6666
CNRepos.find({}, { projection: { repository: 1 } })
6767
.skip(skip)

0 commit comments

Comments
 (0)