feat: fix throttler
This commit is contained in:
parent
3387b3c989
commit
7a82798cdc
|
|
@ -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')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue