mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Got first unit tests for new rate limit middleware
This commit is contained in:
@@ -63,8 +63,8 @@ class RateLimits {
|
||||
// support this function.
|
||||
async applyRateLimits (req, res, next) {
|
||||
try {
|
||||
let userId
|
||||
const decoded = {}
|
||||
// let userId
|
||||
// const decoded = {}
|
||||
|
||||
// Create a re*Q*.locals object if not passed in.
|
||||
// req.locals.proLimit will be true if the user is using Basic Authentication.
|
||||
@@ -170,7 +170,7 @@ class RateLimits {
|
||||
|
||||
return isInternal
|
||||
} catch (err) {
|
||||
console.error(
|
||||
wlogger.error(
|
||||
'Error in checkInternalIp(). Returning false be default. Err: ',
|
||||
err
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user