mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 05:48:00 +03:00
add beatoraja-auth-documents to the db
This commit is contained in:
Generated
+3
-3
@@ -61,7 +61,7 @@ dependencies:
|
||||
express-session: 1.17.1
|
||||
fast-json-stable-hash: 1.0.2
|
||||
fast-xml-parser: 3.19.0
|
||||
kamaitachi-common: github.com/zkldi/Kamaitachi-common/c20f4915738962a8ba867855f4f1bc2624be79be
|
||||
kamaitachi-common: github.com/zkldi/Kamaitachi-common/0398d77719606979c88833b37bce8020958cf058
|
||||
mongodb: 3.6.6
|
||||
monk: 7.3.4
|
||||
multer: 1.4.2
|
||||
@@ -4344,8 +4344,8 @@ packages:
|
||||
engines: {node: '>=6'}
|
||||
dev: true
|
||||
|
||||
github.com/zkldi/Kamaitachi-common/c20f4915738962a8ba867855f4f1bc2624be79be:
|
||||
resolution: {tarball: https://codeload.github.com/zkldi/Kamaitachi-common/tar.gz/c20f4915738962a8ba867855f4f1bc2624be79be}
|
||||
github.com/zkldi/Kamaitachi-common/0398d77719606979c88833b37bce8020958cf058:
|
||||
resolution: {tarball: https://codeload.github.com/zkldi/Kamaitachi-common/tar.gz/0398d77719606979c88833b37bce8020958cf058}
|
||||
name: kamaitachi-common
|
||||
version: 0.1.0
|
||||
dependencies:
|
||||
|
||||
Vendored
+1
@@ -116,6 +116,7 @@ const db = {
|
||||
"game-stats": monkDB.get<UserGameStats>("game-stats"),
|
||||
"kai-auth-tokens": monkDB.get<KaiAuthDocument>("kai-auth-tokens"),
|
||||
"usc-auth-tokens": monkDB.get<GenericAuthDocument>("usc-auth-tokens"),
|
||||
"beatoraja-auth-tokens": monkDB.get<GenericAuthDocument>("beatoraja-auth-tokens"),
|
||||
};
|
||||
|
||||
export default db;
|
||||
|
||||
@@ -21,7 +21,7 @@ router.get("/scores", async (req, res) => {
|
||||
// @optimisable - This should be solved with a couple queries and a hashmap.
|
||||
const beatorajaScores = await Promise.all(
|
||||
scores.map((e) =>
|
||||
KtchiPBScoreToBeatorajaFormat(e, chart, req[SYMBOL_KtchiData]!.beatorajaAuthDoc.userID)
|
||||
KtchiPBScoreToBeatorajaFormat(e, chart, req[SYMBOL_KtchiData]!.beatorajaAuthDoc!.userID)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -37,6 +37,6 @@ export interface KtchiRequestData {
|
||||
uscAuthDoc?: GenericAuthDocument;
|
||||
uscChartDoc?: ChartDocument<"usc:Single">;
|
||||
|
||||
beatorajaAuthDocument?: GenericAuthDocument;
|
||||
beatorajaAuthDoc?: GenericAuthDocument;
|
||||
beatorajaChartDoc?: ChartDocument<"bms:7K" | "bms:14K">;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user