Disable pending requests in mock mode
This commit is contained in:
@@ -158,7 +158,7 @@
|
||||
return res.status(403).send("Forbidden: username not in allowed list")
|
||||
}
|
||||
//Prevent multiples requests
|
||||
if ((!debug)&&(pending.has(login))) {
|
||||
if ((!debug)&&(!mock)&&(pending.has(login))) {
|
||||
console.debug(`metrics/app/${login} > awaiting pending request`)
|
||||
await pending.get(login)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user