Skip to content

Commit

Permalink
temporary fix for #2025
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Nov 15, 2024
1 parent 69d67ba commit ce9a17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otoroshi/app/next/plugins/wasm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ class WasmOPA extends NgAccessValidator {
.map(r => NgAccess.NgDenied(r))

private def execute(vm: WasmVm, ctx: NgAccessContext)(implicit env: Env, ec: ExecutionContext) = {
vm.callOpa("execute", ctx.wasmJson.stringify)
vm.callOpa("execute", (ctx.wasmJson - "attrs").stringify)
.flatMap {
case Right((rawResult, _)) =>
val response = Json.parse(if (rawResult.isEmpty) "[{\"result\":false}]" else rawResult)
Expand Down

0 comments on commit ce9a17a

Please sign in to comment.