mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 01:08:29 +03:00
fix: set playcount=1 for beatoraja score data, instead of 0 (#1620)
* fix: set playcount=1 for beatoraja score data, instead of 0 * fix: tests
This commit is contained in:
@@ -111,7 +111,7 @@ describe("GET /ir/beatoraja/charts/:chartSHA256/scores (Postgres)", () => {
|
||||
epg: 617,
|
||||
lpg: 0,
|
||||
player: "",
|
||||
playcount: 0,
|
||||
playcount: 1,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ router.get("/scores", async (req, res) => {
|
||||
chart.data.hashSHA256,
|
||||
score.userID === requestingUserID ? "" : username,
|
||||
chart.data.notecount,
|
||||
0,
|
||||
1,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ describe("GET /ir/beatoraja/rivals and /players/:userID/scores (Postgres)", () =
|
||||
expect(res.body.body[0]).toMatchObject({
|
||||
sha256: BMSGazerChart.data.hashSHA256,
|
||||
player: "",
|
||||
playcount: 0,
|
||||
playcount: 1,
|
||||
minbp: 12,
|
||||
gauge: 80,
|
||||
maxcombo: 321,
|
||||
@@ -340,7 +340,7 @@ describe("GET /ir/beatoraja/rivals and /players/:userID/scores (Postgres)", () =
|
||||
expect(res.status).toBe(200);
|
||||
expect(res.body.body[0]).toMatchObject({
|
||||
player: "beatoraja_rival_scores_rival",
|
||||
playcount: 0,
|
||||
playcount: 1,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ async function FormatBeatorajaPbsForUser(user: UserDocument, requestedBy: intege
|
||||
chartData.sha256,
|
||||
user.id === requestedBy ? "" : user.username,
|
||||
chartData.notecount,
|
||||
0,
|
||||
1,
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user