Im trying to use a custom decorator to configure the behavior of my interceptor but it appears no to be working.
ERROR [ExceptionHandler] Nest can't resolve dependencies of the SchoolInterceptor (?, RedisManager). Please make sure that the argument Object at index [0] is available in the AppModule context.
interceptor.ts
@Injectable()
export class SchoolInterceptor implements NestInterceptor {
constructor(
private reflector: Reflector,
private readonly redisService: RedisService,
) {}
}
decorator.ts
import { SetMetadata } from '@nestjs/common';
export const IGNORE_JWT_VERIFICATION_KEY = 'ignoreJwtVerification';
export const IgnoreJwtVerification = () =>
SetMetadata(IGNORE_JWT_VERIFICATION_KEY, true);