Tweaked throttling

This commit is contained in:
2019-05-09 10:23:07 +10:00
parent 366a415c8a
commit de92a0e4f7
+1 -1
View File
@@ -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;
}