Fix jail logic

This commit is contained in:
Alice Gaudon 2020-04-24 11:13:29 +02:00
parent 2d22e702ab
commit 3397fd8216
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "wms-core",
"version": "0.2.9",
"version": "0.2.10",
"description": "Node web framework",
"repository": "git@gitlab.com:ArisuOngaku/wms-core.git",
"author": "Alice Gaudon <alice@gaudon.pro>",

View File

@ -53,7 +53,7 @@ class Throttle {
let currentDate = new Date().getTime();
if (trigger.jailed && currentDate - trigger.jailed > 0) {
if (trigger.jailed && currentDate - trigger.jailed < this.jailPeriod) {
this.throw();
return;
}