Skip to content

Commit 6b72a55

Browse files
committed
fix: attempt to resolve undefined moduleRef
1 parent 426d446 commit 6b72a55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/access-control/access-policy.interceptor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
CallHandler,
33
ExecutionContext,
4+
forwardRef,
45
Inject,
56
Injectable,
67
NestInterceptor,
@@ -19,6 +20,7 @@ export class AccessPolicyInterceptor implements NestInterceptor {
1920
constructor(
2021
@Inject(ACCESS_POLICY_OPTS_KEY)
2122
private opts: AccessPolicyInterceptorOpts,
23+
@Inject(forwardRef(() => ModuleRef))
2224
private moduleRef: ModuleRef,
2325
) {}
2426

0 commit comments

Comments
 (0)