Fix jail logic
This commit is contained in:
parent
2d22e702ab
commit
3397fd8216
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wms-core",
|
"name": "wms-core",
|
||||||
"version": "0.2.9",
|
"version": "0.2.10",
|
||||||
"description": "Node web framework",
|
"description": "Node web framework",
|
||||||
"repository": "git@gitlab.com:ArisuOngaku/wms-core.git",
|
"repository": "git@gitlab.com:ArisuOngaku/wms-core.git",
|
||||||
"author": "Alice Gaudon <alice@gaudon.pro>",
|
"author": "Alice Gaudon <alice@gaudon.pro>",
|
||||||
|
@ -53,7 +53,7 @@ class Throttle {
|
|||||||
|
|
||||||
let currentDate = new Date().getTime();
|
let currentDate = new Date().getTime();
|
||||||
|
|
||||||
if (trigger.jailed && currentDate - trigger.jailed > 0) {
|
if (trigger.jailed && currentDate - trigger.jailed < this.jailPeriod) {
|
||||||
this.throw();
|
this.throw();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user