|
|
@@ -16,7 +16,7 @@ const generateApiRateLimitConfigFromEndpoint = (envVar: NodeJS.ProcessEnv, endpo
|
|
|
|
|
|
const endpoint = envVar[key];
|
|
|
|
|
|
- if (endpoint == null || Object.keys(apiRateLimitConfig).includes(endpoint)) {
|
|
|
+ if (endpoint == null) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -48,9 +48,6 @@ export const generateApiRateLimitConfig = (withRegExp: boolean): IApiRateLimitCo
|
|
|
return target;
|
|
|
});
|
|
|
|
|
|
- // sort priority
|
|
|
- apiRateEndpointKeys.sort().reverse();
|
|
|
-
|
|
|
// get config
|
|
|
const apiRateLimitConfig = generateApiRateLimitConfigFromEndpoint(envVar, apiRateEndpointKeys, withRegExp);
|
|
|
|