Skip to content

Commit a56a100

Browse files
waleedlatif1claude
andcommitted
refactor(data-drains): collapse redundant int() in runs limit query
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 57f6571 commit a56a100

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/sim/lib/api/contracts/data-drains.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,10 @@ export const listDataDrainRunsContract = defineRouteContract({
218218
query: z
219219
.object({
220220
limit: z
221-
.preprocess((v) => (typeof v === 'string' ? Number.parseInt(v, 10) : v), z.number().int())
222-
.pipe(z.number().int().min(1).max(200))
221+
.preprocess(
222+
(v) => (typeof v === 'string' ? Number.parseInt(v, 10) : v),
223+
z.number().int().min(1).max(200)
224+
)
223225
.optional(),
224226
})
225227
.optional(),

0 commit comments

Comments
 (0)