Skip to content

Commit

Permalink
added @Inject('ModuleRef') for StorageRbacService (#82)
Browse files Browse the repository at this point in the history
sergey-telpuk authored Feb 23, 2023
1 parent 83b3a38 commit 0df0b5c
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/services/storage.rbac.service.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,9 @@ import { ICacheRBAC } from '../interfaces/cache.rbac.interface';
@Injectable()
export class StorageRbacService {
constructor(
@Inject('ModuleRef')
private readonly moduleRef: ModuleRef,
@Inject('IDynamicStorageRbac')
private readonly rbac: IDynamicStorageRbac,
@Optional() @Inject('ICacheRBAC')
private readonly cache?: ICacheRBAC,
2 changes: 1 addition & 1 deletion test/e2e/rbac/contollers/rbac.async.test.controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Controller, Get, UseGuards } from '@nestjs/common';
import { RBAcGuard } from '../../../../src/guards/rbac.guard';
import {RBAcAnyPermissions, RBAcAsyncPermissions, RBAcAnyAsyncPermissions} from '../../../../src/decorators/rbac.permissions.decorator';
import { RBAcAsyncPermissions, RBAcAnyAsyncPermissions } from '../../../../src/decorators/rbac.permissions.decorator';
import { AuthGuard } from '../guards/auth.guard';
import { ASYNC_RBAC_REQUEST_FILTER } from '../../../../src/constans';

0 comments on commit 0df0b5c

Please sign in to comment.