Skip to content

Commit

Permalink
fix missing await result
Browse files Browse the repository at this point in the history
  • Loading branch information
vunb committed Aug 20, 2019
1 parent d2d34d3 commit 8b847fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rest/rest.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class RestExtension implements KitesExtension {

// invoke controller's action
// const ctrl = await this.kites.container.inject<any>(controller);
const value = ctrl[key](...args);
const value = await ctrl[key](...args);

if (value instanceof HttpResponseMessage) {
await this.handleHttpResponseMessage(value, res);
Expand Down

0 comments on commit 8b847fb

Please sign in to comment.