diff --git a/test/app/controllers/controller.module.ts b/test/app/controllers/controller.module.ts index 0dcaa438..eed28682 100644 --- a/test/app/controllers/controller.module.ts +++ b/test/app/controllers/controller.module.ts @@ -1,5 +1,6 @@ import { Module } from '@nestjs/common'; -import { ThrottlerModule, ThrottlerStorageService } from '@nestjs/throttler'; +import { ThrottlerModule } from '@nestjs/throttler'; +import { ThrottlerStorageRedisService } from '../../../src'; import { AppService } from '../app.service'; import { AppController } from './app.controller'; import { DefaultController } from './default.controller'; @@ -11,7 +12,7 @@ import { LimitController } from './limit.controller'; limit: 5, ttl: 60, ignoreUserAgents: [/throttler-test/g], - storage: new ThrottlerStorageService(), + storage: new ThrottlerStorageRedisService(), }), ], controllers: [AppController, DefaultController, LimitController],