diff --git a/projects/backend/src/service/score.service.ts b/projects/backend/src/service/score.service.ts index c9bc852..79fb523 100644 --- a/projects/backend/src/service/score.service.ts +++ b/projects/backend/src/service/score.service.ts @@ -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, diff --git a/projects/common/src/model/additional-score-data/additional-score-data.ts b/projects/common/src/model/additional-score-data/additional-score-data.ts index 91c0782..580597d 100644 --- a/projects/common/src/model/additional-score-data/additional-score-data.ts +++ b/projects/common/src/model/additional-score-data/additional-score-data.ts @@ -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. */