Skip to content

Commit

Permalink
fix: engineTask run annotation for sync methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tabkram committed Dec 12, 2023
1 parent 91d233f commit eb979ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/executionEngineDecorators.ts
Expand Up @@ -68,7 +68,7 @@ export function run<O>(options?: TraceOptions<Array<any>, O>) {
if (isAsync(originalMethod)) {
return this.engine.run(originalMethod.bind(this), args, options)?.then((r) => r.outputs);
} else {
this.engine.run(originalMethod.bind(this), args, options)?.outputs;
return this.engine.run(originalMethod.bind(this), args, options)?.outputs;
}
};

Expand Down

0 comments on commit eb979ee

Please sign in to comment.