Skip to content

Commit 59b4616

Browse files
committed
fix: validation error bug, add limits to 'args'
1 parent 6d310a2 commit 59b4616

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/components/tasks-table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const searchHandler: ((value: string) => void) | undefined =
149149
:state="task.state"
150150
/>
151151
</TableCell>
152-
<TableCell>{{ task.args }}</TableCell>
152+
<TableCell>{{ limitText(JSON.stringify(task.args), 25) }}</TableCell>
153153
<TableCell>{{ limitText(JSON.stringify(task.kwargs), 25) }}</TableCell>
154154
<TableCell>{{ limitText(formatReturnValue(task), 10) }}</TableCell>
155155
<TableCell class="text-center">

shared/schemas/tasks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ export const getTasksQueryParamsSchema = z.object({
3737
sortByRuntime: z.enum(['asc', 'desc']).optional(),
3838
sortByStartedAt: z.enum(['asc', 'desc']).optional(),
3939
sortByQueuedAt: z.enum(['asc', 'desc']).optional(),
40-
startDate: z.date().optional(),
41-
endDate: z.date().optional()
40+
startDate: z.coerce.date().optional(),
41+
endDate: z.coerce.date().optional()
4242
})

0 commit comments

Comments
 (0)