feat: fix throttler

This commit is contained in:
Nevo David 2025-12-28 18:24:33 +07:00
parent 3387b3c989
commit 7a82798cdc
1 changed files with 4 additions and 2 deletions

View File

@ -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')
);
}
}