fix(rate-limits): Fixing bug that introduced yesterday

This commit is contained in:
Chris Troutner
2020-06-20 11:22:14 -07:00
parent 9dbcb59468
commit b5c18f23c7
+3 -2
View File
@@ -120,8 +120,9 @@ class RateLimits {
// apply paid-access rate limits.
const origin = req.get('origin')
if (
origin.toString().indexOf('wallet.fullstack.cash') > -1 ||
origin.toString().indexOf('sandbox.fullstack.cash') > -1
origin &&
(origin.toString().indexOf('wallet.fullstack.cash') > -1 ||
origin.toString().indexOf('sandbox.fullstack.cash') > -1)
) {
pointsToConsume = 1
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.