Skip to content

Commit a37c39d

Browse files
committed
feat: adjust limits
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 9479f9e commit a37c39d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

backend/src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ setImmediate(async () => {
147147

148148
app.use(bodyParser.urlencoded({ limit: '5mb', extended: true }))
149149

150-
app.use((err: any, _: any, res: any, next: any) => {
150+
app.use((err: any, req: any, res: any, next: any) => {
151151
if (err.type === 'entity.parse.failed') {
152152
res.status(400).json({ error: { code: 'BAD_REQUEST', message: 'Invalid JSON body' } })
153153
return

backend/src/api/public/v1/dev-stats/getAffiliations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
import { ok } from '@/utils/api'
1212
import { validateOrThrow } from '@/utils/validation'
1313

14-
const MAX_HANDLES = 100
15-
const DEFAULT_PAGE_SIZE = 50
14+
const MAX_HANDLES = 50
15+
const DEFAULT_PAGE_SIZE = 20
1616

1717
const bodySchema = z.object({
1818
githubHandles: z

0 commit comments

Comments
 (0)