Add best score in song history

This commit is contained in:
2023-05-23 16:22:52 +09:00
parent 571b3b89e5
commit 3585c259a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export class HistoryService {
}); });
return { return {
best: 0, best: Math.max(...history.map((x) => x.score)),
history, history,
}; };
} }
+1 -1
View File
@@ -132,7 +132,7 @@ Get the history of a single song
Integer $history[1].userID ${userID} Integer $history[1].userID ${userID}
Integer $history[1].songID ${song.body.id} Integer $history[1].songID ${song.body.id}
Integer $history[1].score 55 Integer $history[1].score 55
Integer $best 0 Integer $best 65
[Teardown] Run Keywords DELETE /users/${userID} [Teardown] Run Keywords DELETE /users/${userID}
... AND DELETE /song/${song.body.id} ... AND DELETE /song/${song.body.id}