aboutsummaryrefslogtreecommitdiff
path: root/src/database.ts
AgeCommit message (Collapse)Author
2021-12-29fix all typescript errors with mongodbmat
2021-09-12add warning for social skill leaderboardmat
2021-09-06Bump node-fetch from 2.6.1 to 3.0.0 (#116)dependabot[bot]
* Bump node-fetch from 2.6.1 to 3.0.0 Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 3.0.0. - [Release notes](https://github.com/node-fetch/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v3.0.0) --- updated-dependencies: - dependency-name: node-fetch dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix issues with node fetch 3.0 * change module to esnext instead of commonjs * fix imports and tests * fix package-lock.json Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mat <github@matdoes.dev> Co-authored-by: mat <27899617+mat-1@users.noreply.github.com>
2021-08-06don't add players to leaderboards leaderboards when they aren't on anymat
2021-08-01remove debug messagemat
2021-08-01add #1 leaderboards count leaderboardmat
2021-07-01make the code slightly prettiermat
2021-07-01delete players with no leaderboard positions from leaderboard collectionsmat
2021-06-29enable strictNullChecks and fix all related issues (#65)mat
2021-06-01add info for leaderboards_countmat
2021-06-01make new "cache" for recentlyqueuedmat
2021-06-01don't queue stuff if it's in recentlyUpdatedmat
2021-06-01lower the interval for leaderboardUpdateMemberQueue even moremat
uhhhhhh hopefully the database doesn't get too sad from this
2021-06-01decrease the queue intervals by a lotmat
2021-06-01add queue sizes to index debug datamat
2021-06-01Revert "Revert "Revert "temporarily disable leaderboard cache"""mat
This reverts commit f111a9a1db78fbfe0737661f3c9104f52d6de945.
2021-06-01Revert "Revert "temporarily disable leaderboard cache""mat
This reverts commit 0203c2bf6d645e2f0c42fc3dc839e1320ee57c84.
2021-06-01Revert "temporarily disable leaderboard cache"mat
This reverts commit ddf7ff4ab6331f70e313de29eafdcc03d67074ad.
2021-06-01temporarily disable leaderboard cachemat
i am literally going insane
2021-05-31add leaderboard infosmat
2021-05-31add memberRawLeaderboardItem and profileRawLeaderboardItemmat
these hold slightly less information and should therefore use slightly less memory, hopefully
2021-05-31removed fetching all the members in all of the leaderboardsmat
2021-05-30re-add the pre-cache for leaderboard usersmat
2021-05-30remove debug thingmat
2021-05-30i think i found out why it's using so much memory.mat
2021-05-30Revert "disable leaderboards again :trollface:"mat
This reverts commit dcccb6fa3bcfb15dcb272e47ddd87184ab84be61.
2021-05-30disable leaderboards again :trollface:mat
2021-05-29only cache raw leaderboardsmat
2021-05-28add more useful stuff to indexmat
2021-05-28Don't fetch leaderboards multiple times when they're already being fetched (#47)mat
2021-05-28increase interval for updating leaderboardsmat
2021-05-27fix some bugs with it loading forevermat
2021-05-27random random debug things and optimize leaderboardsmat
optimize leaderboards by fetching all the raw ones at the beginning
2021-05-27make leaderboards send less requestsmat
2021-05-27disable "fast" mode for leaderboardsmat
2021-05-27log profile in fetchProfileUuid cache missmat
2021-05-27Profile customization (#45)mat
* add basic discord auth * add uuid dependency * add lastUpdated to sessions * add route to get session from id * add accounts collection * update build * add gm rank * add `customization` url parameter * add customization parameter to /player/:user * add route to get info from discord id * remove a console.log * Update database.js * Update package.json * fix tests
2021-05-24add cachedRawLeaderboards size to debugmat
2021-05-24Revert "disable leaderboards"mat
This reverts commit 17866766304a9049dda716a21d94bcd4803980a7.
2021-05-24Revert "enable raw leaderboard cache again"mat
This reverts commit b33fbf90a8c7df808ee88ac2b38782fcfe93f224.
2021-05-24enable raw leaderboard cache againmat
2021-05-24disable leaderboardsmat
2021-05-10decrease memory usemat
2021-05-01Show minions that haven't been unlocked in response (#20)mat
* add minions that haven't been unlocked yet to response, and slightly optimize constants * remove most console.logs with console.debugs * mock constants
2021-04-29rename minion_count to unique_minionsmat
2021-04-28remove some debug stuffmat
2021-04-27Add minion_count leaderboard (#15)mat
* add minion count leaderboard * fix error that happens sometimes * Update index.js
2021-04-27Total leaderboards leaderboard (#13)mat
* add leaderboards leaderboard * slightly optimize fetchPlayer to not unnecessarily fetch the same player twice * Compiled TS into JS * fix errors with fetch * fix random bugs that made people disappear from leaderboards * Update hypixelCached.js
2021-04-27Add unit tests (#12)mat
* start adding unit tests * add more to test/data/mojang.json * fix sending http requests in tests when it shouldn't * add a few more tests * try to add a github action to run tests * Update test.yml
2021-04-14revert change that makes leaderboards update slowlymat