monkeytype/backend
Evan 0f51c384f6
Force mode2 to always be string (#4097) Ferotiq Miodec
* make a util type

* `StringNumber` in `leaderboards.ts`

* fix errors in`pb-tables.ts`

* remove string conversion

* update schemas

* refactor `checkAndUpdatePb`

* use string arrays

* parse the mode2 before comparing

* refactor types

* fallback to empty array

* complete the mode2 string conversion

* missed a few things

* assert

* fix tests

* those were meant to be arrays

* don't supply custom and zen by default

* update interfaces

* add `parseInt`

* rename

* apparently those weren't even needed

* updated type

* added types

* types

* added comment

* added comments, removed triple equals

* another comment and again removed type check

* making sure to include legacy results

* using template strings instead

* using template strings and triple equals

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-24 15:53:37 +02:00
..
__tests__ Update PersonalBests Interface (#4158) Ferotiq 2023-05-03 11:39:32 +02:00
email-templates Custom email (#3964) 2023-02-13 13:24:43 +01:00
private showing error when fetch failed 2023-01-24 14:03:31 +01:00
redis-scripts Add weekly xp leaderboards backend (#3511) Bruception 2022-11-28 14:10:02 +01:00
src Force mode2 to always be string (#4097) Ferotiq Miodec 2023-05-24 15:53:37 +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 Custom email (#3964) 2023-02-13 13:24:43 +01:00
jest-mongodb-config.js Feature/backend test (#2937) sondrekje 2022-05-05 15:19:31 +02:00
jest.config.ts fixed tests 2023-04-21 12:05:38 +02:00
package-lock.json updated bullmq 2023-04-20 13:27:41 +02:00
package.json updated bullmq 2023-04-20 13:27:41 +02:00
tsconfig.json Move backend source files into src folder (#2943) 2022-05-05 19:27:00 +02:00