Remove comments property from PBs.

Fixes #262
This commit is contained in:
zkldi
2021-08-10 23:02:47 +01:00
parent 5db177239c
commit 28caee46f1
7 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -69,7 +69,7 @@
"redis": "3.1.2",
"rimraf": "3.0.2",
"safe-json-stringify": "1.2.0",
"tachi-common": "^0.1.1",
"tachi-common": "^0.1.3",
"typescript": "4.3.4",
"winston": "3.3.3"
},
+4 -4
View File
@@ -51,7 +51,7 @@ specifiers:
rimraf: 3.0.2
safe-json-stringify: 1.2.0
supertest: 6.1.3
tachi-common: ^0.1.1
tachi-common: ^0.1.3
tap: 15.0.9
ts-node: 10.0.0
tsconfig-paths: 3.10.1
@@ -84,7 +84,7 @@ dependencies:
redis: 3.1.2
rimraf: 3.0.2
safe-json-stringify: 1.2.0
tachi-common: 0.1.1_ts-node@10.0.0+typescript@4.3.4
tachi-common: 0.1.3_ts-node@10.0.0+typescript@4.3.4
typescript: 4.3.4
winston: 3.3.3
@@ -3774,8 +3774,8 @@ packages:
strip-ansi: 6.0.0
dev: true
/tachi-common/0.1.1_ts-node@10.0.0+typescript@4.3.4:
resolution: {integrity: sha512-mcVcGJDpahkScgWXn5AiM+gehqqvgsXh+iblgG3seuoCJc+/0qiw5uJMN3OzLb0Xjutf2pFgcdTWWfAw9lsqrA==}
/tachi-common/0.1.3_ts-node@10.0.0+typescript@4.3.4:
resolution: {integrity: sha512-qY2so9g0DOeKXcNtbGJW5lcl60QNeQCVXPG3iC1G18pYV5qmV+EmzkpOwG0RUmZcWC/X4r/eW5nhLLG7pWfcEA==}
dependencies:
monk: 7.3.4
tap: 15.0.9_ts-node@10.0.0+typescript@4.3.4
@@ -33,7 +33,6 @@ t.test("#CreatePBDoc", (t) => {
timeAchieved: 1619454485988,
game: "iidx",
playtype: "SP",
comments: [],
composedFrom: {
scorePB: IIDXScore.scoreID,
lampPB: "LAMP_PB_ID",
@@ -125,7 +125,6 @@ async function MergeScoreLampIntoPB(
lampPB: lampPB.scoreID,
},
chartID: scorePB.chartID,
comments: [scorePB.comment, lampPB.comment].filter((e) => e !== null) as string[],
userID,
songID: scorePB.songID,
highlight: scorePB.highlight || lampPB.highlight,
@@ -97,7 +97,6 @@ t.test("GET /ir/usc/charts/:chartHash", (t) => {
const USC_SCORE_PB: PBScoreDocument = {
chartID: "USC_CHART_ID",
comments: [],
rankingData: {
rank: 1,
outOf: 2,
@@ -8,7 +8,6 @@ import { CloseAllConnections } from "test-utils/close-connections";
const mockScorePB: PBScoreDocument<"usc:Single"> = {
chartID: "USC_CHART_ID",
comments: [],
calculatedData: {
VF6: 0,
},
@@ -6,7 +6,6 @@
"ktLampRating": 0,
"BPI": 10.10
},
"comments": [],
"composedFrom": {
"scorePB": "TESTING_SCORE_ID",
"lampPB": "TESTING_SCORE_ID"