Skip to content

Commit

Permalink
Fix undefined context
Browse files Browse the repository at this point in the history
  • Loading branch information
frondeus committed Apr 7, 2023
1 parent 40977c8 commit 16b61d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function populateContext(ctx: any): Context {
if (ctx.ctx === undefined || ctx.ctx === null) {
let context = container.resolve(Context);
ctx.syrinCtx = () => context;
ctx.ctx.utils.warn('Context was undefined. Fixing it!');
context.utils.warn('Context was undefined. Fixing it!');
}
return ctx.syrinCtx();
}
Expand Down

0 comments on commit 16b61d9

Please sign in to comment.