Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix throttler

Nevo David7a82798cdc38
diff --git a/libraries/nestjs-libraries/src/throttler/throttler.provider.ts b/libraries/nestjs-libraries/src/throttler/throttler.provider.ts
index beb017634..8118aaa32 100644
--- a/libraries/nestjs-libraries/src/throttler/throttler.provider.ts
+++ b/libraries/nestjs-libraries/src/throttler/throttler.provider.ts
@@ -11,12 +11,14 @@ export class ThrottlerBehindProxyGuard extends ThrottlerGuard {
return super.canActivate(context);
}
- return true;
+ return super.canActivate(context);
}
protected override async getTracker(
req: Record<string, any>
): Promise<string> {
- return req.org.id;
+ return (
+ req.org.id + '_' + (req.url.indexOf('/posts') > -1 ? 'posts' : 'other')
+ );
}
}