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 fixed ignore 2022-03-07 14:39:09 +01:00
docker-compose.yml Add docker-compose and instructions to README (#2939) sondrekje 2022-05-05 01:52:17 +02:00
example.env Add docker-compose and instructions to README (#2939) sondrekje 2022-05-05 01:52:17 +02:00
jest-mongodb-config.js Feature/backend test (#2937) sondrekje 2022-05-05 15:19:31 +02:00
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 Move backend source files into src folder (#2943) 2022-05-05 19:27:00 +02:00