API: move around
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Failing after 36s

This commit is contained in:
Lee 2024-08-01 16:35:10 +01:00
parent 139b3bf06d
commit 7b1d4a73a5
2 changed files with 12 additions and 12 deletions

@ -18,16 +18,6 @@ public class ScoreResponse {
*/ */
private String scoreId; private String scoreId;
/**
* The ID of the player who set the score.
*/
private ScoreSaberAccount player;
/**
* The ID of the leaderboard.
*/
private Leaderboard leaderboard;
/** /**
* The PP of the score. * The PP of the score.
*/ */
@ -83,6 +73,16 @@ public class ScoreResponse {
*/ */
private Double accuracy; private Double accuracy;
/**
* The ID of the player who set the score.
*/
private ScoreSaberAccount player;
/**
* The ID of the leaderboard.
*/
private Leaderboard leaderboard;
/** /**
* The timestamp of the score. * The timestamp of the score.
*/ */

@ -78,8 +78,6 @@ public class TrackedScoreService {
scores.add(new ScoreResponse( scores.add(new ScoreResponse(
trackedScore.getScoreId(), trackedScore.getScoreId(),
user.getScoresaberAccount(),
leaderboard,
trackedScore.getPp(), trackedScore.getPp(),
trackedScore.getRank(), trackedScore.getRank(),
trackedScore.getScore(), trackedScore.getScore(),
@ -91,6 +89,8 @@ public class TrackedScoreService {
trackedScore.getBadCuts(), trackedScore.getBadCuts(),
trackedScore.getMaxCombo(), trackedScore.getMaxCombo(),
trackedScore.getAccuracy(), trackedScore.getAccuracy(),
user.getScoresaberAccount(),
leaderboard,
trackedScore.getTimestamp() trackedScore.getTimestamp()
)); ));
} }