adamA
Convex Community2y ago
10 replies
adam

Scheduled function incorrect response value (unexpected `jobId` property)

When I run
const jobId = await ctx.scheduler.runAfter(...); from a mutation then jobId has the correct type of Id<'_scheduled_functions'> and correct value.

However, when I run const jobId = await ctx.scheduler.runAfter(...); from an internal action, then jobId has the correct type of Id<'_scheduled_functions'> but it's value is of type { jobId: Id<'_scheduled_functions'>} (ie it has a nested jobId property).

Convex v1.13.0
Was this page helpful?