monkeytype/backend
Jack 46e0c5c960
Auto ban (#2984)
* added auto ban if user triggers anticheat too much

* updated base configuration

* autoban is optional

* storing updated autoban array

* only checking autoban in time 15 and 60

* miliseconds

* removed unnecessary if check

* returning if already banned

* storing now in variable
greater not greater equal

* moved constant outside function

* using partial type

* renamed variables

* renamed to autoBanTimestamps

* added autoban tests

* increased coverage minimum

* slightly better test

* added autoBanTimestamps checks to other tests
2022-05-16 21:03:44 +02:00
..
__tests__ Auto ban (#2984) 2022-05-16 21:03:44 +02:00
src Auto ban (#2984) 2022-05-16 21:03:44 +02:00
.gitignore
docker-compose.yml
example.env
jest-mongodb-config.js
jest.config.ts Auto ban (#2984) 2022-05-16 21:03:44 +02:00
package-lock.json Testing - mock setup for redis (#2944) 2022-05-05 14:05:31 -04:00
package.json fixed incorrect path 2022-05-05 23:28:02 +02:00
setup-tests.ts Testing - mock setup for redis (#2944) 2022-05-05 14:05:31 -04:00
tsconfig.json