Disable pending requests in mock mode

This commit is contained in:
lowlighter
2021-03-21 10:27:06 +01:00
parent 5f6db8a9a3
commit 9870a3933e

View File

@@ -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)
}