Hey guys, I am getting an error when using this new Workflow API sendEvent in the production environ

Hey guys,
I am getting an error when using this new Workflow API sendEvent in the production environment. Local works as expected.
const workflow = await this.env.CONNECTIONS_WORKFLOW.get(workflowId);
    await workflow.sendEvent({ type: 'form-submission', payload });

Error message:
TypeError: (intermediate value).sendEvent is not a function
Was this page helpful?