export const execTaskGetLogs = webProcedure
.input(
z.object({
execTaskId: z.string().nonempty(),
debug: z.boolean().optional(),
cursor: z.string().nullish(),
})
)
.query(async ({ ctx, input: { execTaskId, debug, cursor } }) => {
...
console.log('getLogs input: ', { execTaskId, debug, cursor })
return { logs: [...], nextCursor: `<my-cursor>` }
}
export const execTaskGetLogs = webProcedure
.input(
z.object({
execTaskId: z.string().nonempty(),
debug: z.boolean().optional(),
cursor: z.string().nullish(),
})
)
.query(async ({ ctx, input: { execTaskId, debug, cursor } }) => {
...
console.log('getLogs input: ', { execTaskId, debug, cursor })
return { logs: [...], nextCursor: `<my-cursor>` }
}