Remove vm2 usage from script controllers
This commit is contained in:
parent
2cc6710162
commit
0b84957ad0
|
@ -1,9 +1,9 @@
|
|||
import { Ctx } from "@budibase/types"
|
||||
import { VM2 } from "../../jsRunner/vm"
|
||||
import { IsolatedVM } from "../../jsRunner/vm"
|
||||
|
||||
export async function execute(ctx: Ctx) {
|
||||
const { script, context } = ctx.request.body
|
||||
const runner = new VM2(context)
|
||||
const runner = new IsolatedVM(context)
|
||||
const result = runner.execute(script)
|
||||
ctx.body = result
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue