store bl score and leaderboard id
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 47s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m22s

This commit is contained in:
Lee 2024-10-22 18:10:33 +01:00
parent 2fc8b265d2
commit 75f79e34b7
2 changed files with 14 additions and 0 deletions

View File

@ -195,6 +195,8 @@ export class ScoreService {
songHash: leaderboard.song.hash.toUpperCase(),
songDifficulty: difficultyKey,
songScore: score.baseScore,
scoreId: score.id,
leaderboardId: leaderboard.id,
misses: {
misses: getMisses(score),
missedNotes: score.missedNotes,

View File

@ -52,6 +52,18 @@ export class AdditionalScoreData {
// Above data is only so we can fetch it
// --------------------------------
/**
* The BeatLeader score id for this score.
*/
@prop({ required: false })
public scoreId!: number;
/**
* The BeatLeader leaderboard id for this score.
*/
@prop({ required: false })
public leaderboardId!: string;
/**
* The amount of pauses in the play.
*/