Skip to content

Commit

Permalink
refactor(trigger): set ExecutionContainer to itself
Browse files Browse the repository at this point in the history
  • Loading branch information
noahziheng committed Jul 14, 2022
1 parent 8bada86 commit e26ea64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/trigger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export default class Trigger implements TriggerType {
async initContext(input: Input = new Input(), output = new Output()): Promise<Context> {
const ctx = new Context(input, output);
ctx.container = new ExecutionContainer(ctx, this.app.container);
ctx.container.set({
id: ExecutionContainer,
value: ctx.container,
});
return ctx;
}

Expand Down

0 comments on commit e26ea64

Please sign in to comment.