enable rate limits for dev environment
This commit is contained in:
parent
9daafca155
commit
ead781900d
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ export class SkRateLimiterService {
|
|||
@Inject(EnvService)
|
||||
envService: EnvService,
|
||||
) {
|
||||
this.disabled = envService.env.NODE_ENV !== 'production';
|
||||
this.disabled = envService.env.NODE_ENV === 'test';
|
||||
}
|
||||
|
||||
public async limit(limit: Keyed<RateLimit>, actor: string, factor = 1): Promise<LimitInfo> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue