async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
await context.run({ id: "124" }, async () => {
// loadFile will get undefined when calling content.getStore()
const txt = await step.do("load", loadFile);
const txt2 = await step.do("load2",
// this one will work
async()=>console.log(context.getStore().id));
});
}
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
await context.run({ id: "124" }, async () => {
// loadFile will get undefined when calling content.getStore()
const txt = await step.do("load", loadFile);
const txt2 = await step.do("load2",
// this one will work
async()=>console.log(context.getStore().id));
});
}