Commit graph

23 commits

Author SHA1 Message Date
Bruce Berrios
61ebf2cc39
Add error handling for bad requests (#2654) by bruce
* Add error handling for bad requests

* Fix status code

* Update

* Tidy status codes
2022-03-07 22:16:42 +01:00
Bruce Berrios
374a2089c3
Rename handlers to utils (#2620) 2022-03-03 16:31:57 -05:00
Bruce Berrios
8dbf0966d1
Upgrade mongo library to 4.x.x (#2576) 2022-02-23 14:23:54 -05:00
Bruce Berrios
f9d6f52c15
Api overhaul (#2555) by Bruception
* Feat:Update response structure (#2427)

* Fix:response and error structure

* update:response message

* update:response class

* update

* Update response message

Co-authored-by: Mustafiz Kaifee Mumtaz <mustafiz.mumtaz@freecharge.com>

* Add MonkeyToken foundation (#2487) by Bruception

* Api changes (#2492)

* API changes

* Remove unused import

* Add Ape client (#2513)

* Add all endpoints (#2514)

* Merged backend typescript into api overhaul (#2515)

* Install typescript and add backend tsconfig

Cannot yet build due to a number of compilation errors in JS code

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fix typescript compilation errors

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Migrated backend to ES modules

Switched to import export syntax

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add typescript declaration for anticheat

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Rename top level files to .ts

Fix service account json file typing

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add dev build scripts for backend typescript

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Removed empty lines and switched to using db

Cleaned up imports by removing needless empty lines and migrated to the new db.js instead of mongodb.js.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fixed backend commonjs syntax to ES module syntax

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add build to backend start script

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Migrate some endpoints to Ape

* Strict equals

* Remove artifact

* ape -> Ape

* Ape migration p2 (#2522)

* Migrate leaderboard endpoints to ape

* Fixed comment

* Init backend types

* Fail

* Return

* Migrate Quotes to Ape (#2528)

* Migrate quotes to Ape

* Fix backend response

* Fix issue

* Fix rate limit (#2533)

* fix rate limit

* Fix import

* Fix issues

* Ape migration p4 (#2547)

* Migrate results endpoints to ape

* Remove unused import

* Remove unused import

* Fix loaders

* Make function async

* Hide try saving results

* Migrate some users endpoints to Ape (#2548)

* Complete Ape Migration (#2553)

* Complete ape migration

* Fix preset

* Return preset data

* Add typings

* Move captcha reset

* Read from params

* Fix result tags endpoint

* Fix stuck loader

* fixed lb memory not saving

* fixed quote rating popup not showing up for new users

Co-authored-by: Mustafiz Kaifee <49086821+Mustafiz04@users.noreply.github.com>
Co-authored-by: Mustafiz Kaifee Mumtaz <mustafiz.mumtaz@freecharge.com>
Co-authored-by: Brian Evans <53117772+mrbrianevans@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-22 20:55:48 +01:00
Miodec
1692679951 typo 2022-01-31 15:36:22 +01:00
Miodec
7da9afb557 added a function to get last result 2021-12-30 16:05:32 +01:00
Jack
9671c8115d no longer checking if result was using input rewrite 2021-11-23 21:06:42 +00:00
Jack
614f7fde03 marking all results coming from the input rewrite 2021-09-29 14:21:35 +01:00
Jack
1c710d609e removed old lb code 2021-09-07 17:44:54 +01:00
Jack
febee299ba fixed function that searches by objectid 2021-09-07 15:03:24 +01:00
Jack
82a45bfb7d increased fake result security by hasing objects and checking duplicate timestamps 2021-08-27 21:00:11 +01:00
Miodec
367b104679 better errors 2021-08-18 01:41:29 +01:00
lukew3
dbeb90c077 check leaderboard qualification and fix daily lb not limiting to today 2021-08-10 13:56:22 -04:00
lukew3
79da897ef4 leaderboard queries results 2021-08-09 21:31:19 -04:00
Miodec
99fca1b3e3 inverted result sorting 2021-08-04 14:37:15 +01:00
Miodec
1ae537e288 added account deletion to the danger zone 2021-07-25 00:44:24 +01:00
Miodec
9676e47ea0 updating result tags 2021-07-09 18:27:08 +01:00
Miodec
81bc9ded69 results now use _id correctly 2021-07-09 16:32:57 +01:00
Miodec
032621a0d8 collection name typos 2021-07-07 14:04:28 +01:00
Miodec
fe38ca296a converted result getting 2021-07-06 15:22:05 +01:00
Miodec
5eed88b0e7 added result dao and controller 2021-06-12 19:02:19 +01:00
Miodec
b76df52dee added tag verification when setting tags on result 2021-06-12 17:51:30 +01:00
Miodec
267dbb6a1a renamed all dao files 2021-06-12 17:11:07 +01:00
Renamed from backend/dao/resultDAO.js (Browse further)