From de92a0e4f787ee1750bca1f3126980ae20c2b9ea Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 9 May 2019 10:23:07 +1000 Subject: [PATCH] Tweaked throttling --- common/throttle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/throttle.js b/common/throttle.js index efd0e8e..4154f8a 100644 --- a/common/throttle.js +++ b/common/throttle.js @@ -11,7 +11,7 @@ function isThrottled(email) { return false; } - if ( (emails[email] - new Date()) / 1000 > 3) { //3 seconds + if ( Math.abs(emails[email] - new Date()) / 1000 > 3) { //3 seconds return false; }