Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fix: use correct redis storage service
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Mar 5, 2021
1 parent 7341214 commit e59c4ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/app/controllers/controller.module.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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],
Expand Down

0 comments on commit e59c4ad

Please sign in to comment.