diff --git a/src/plugins/javascript/httpyacJsApi.ts b/src/plugins/javascript/httpyacJsApi.ts index 85c320f6..2943e619 100644 --- a/src/plugins/javascript/httpyacJsApi.ts +++ b/src/plugins/javascript/httpyacJsApi.ts @@ -19,7 +19,7 @@ export class HttpyacJsApi { utils.setVariableInContext(vars, this.context); } - async execute(httpRegion: models.HttpRegion | string, vars?: models.Variables): Promise { + async execute(httpRegion: models.HttpRegion | string, vars?: models.Variables): Promise { if (vars) { utils.setVariableInContext(vars, this.context); } @@ -35,8 +35,7 @@ export class HttpyacJsApi { const envKey = utils.toEnvironmentKey(this.context.httpFile.activeEnvironment); utils.setVariableInContext(obj.variablesPerEnv[envKey], this.context); } - return result; } - return false; + return this.context.variables; } }