From 928d766c780f8b7357e9563da8603593743cf284 Mon Sep 17 00:00:00 2001 From: Robin De Schepper Date: Fri, 8 Sep 2023 13:43:03 +0200 Subject: [PATCH] Fix notation of throttler config The `ThrottlerModule` is now configured with an array of objects instead --- content/security/rate-limiting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/security/rate-limiting.md b/content/security/rate-limiting.md index 176d017d6c..96149aed34 100644 --- a/content/security/rate-limiting.md +++ b/content/security/rate-limiting.md @@ -12,10 +12,10 @@ Once the installation is complete, the `ThrottlerModule` can be configured as an @@filename(app.module) @Module({ imports: [ - ThrottlerModule.forRoot({ + ThrottlerModule.forRoot([{ ttl: 60, limit: 10, - }), + }]), ], }) export class AppModule {}