mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Merge pull request #82 from Permissionless-Software-Foundation/ct-unstable
fix(rate limits): Fixed bug with rate limits
This commit is contained in:
@@ -151,7 +151,8 @@ class RateLimits {
|
||||
// apply paid-access rate limits.
|
||||
// console.log(`origin: ${JSON.stringify(origin, null, 2)}`)
|
||||
// console.log(`whitelist: ${JSON.stringify(WHITELIST_DOMAINS, null, 2)}`)
|
||||
if (this.isInWhitelist(origin)) {
|
||||
const isInWhitelist = _this.isInWhitelist(origin)
|
||||
if (isInWhitelist) {
|
||||
pointsToConsume = WHITELIST_RATE_LIMIT
|
||||
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user