Skip to content

Commit a9491d3

Browse files
committed
fix: blueprint fetch method missing
1 parent 5602c47 commit a9491d3

File tree

1 file changed

+6
-1
lines changed
  • packages/job-worker/src/blueprints

1 file changed

+6
-1
lines changed

packages/job-worker/src/blueprints/cache.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ export async function parseBlueprintDocument(
5454
let manifest: SomeBlueprintManifest
5555
try {
5656
const blueprintPath = `db:///blueprint/${blueprint.name || blueprint._id}-bundle.js`
57-
const context = vm.createContext({}, {})
57+
const context = vm.createContext(
58+
{
59+
fetch,
60+
},
61+
{}
62+
)
5863
const script = new vm.Script(
5964
`__run_result = ${blueprint.code}
6065
__run_result || blueprint`,

0 commit comments

Comments
 (0)