Skip to content

Commit c880fb5

Browse files
committed
Pass context to application.invoke
Refs: metarhia/impress#1474 Refs: metarhia/impress#1475 PR-URL: #142
1 parent f1d1c43 commit c880fb5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
- Fix error passing to client side
66
- Call application.invoke to execute methods with schema validation
77
- Don't pass context to `application.getMethod`
8-
- Now proc is a struct, not just method with injected context
8+
- Pass context to application.invoke
9+
- Now proc is a struct, not just method with injected context
910

1011
## [1.3.1][] - 2021-02-09
1112

lib/channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class Channel {
204204
this.error(403, null, callId);
205205
return;
206206
}
207-
const result = await application.invoke(proc, args);
207+
const result = await application.invoke(context, proc, args);
208208
if (result instanceof Error) {
209209
this.error(result.code, result, callId);
210210
return;

0 commit comments

Comments
 (0)