Add best score in song history
This commit is contained in:
@@ -65,7 +65,7 @@ export class HistoryService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
best: 0,
|
best: Math.max(...history.map((x) => x.score)),
|
||||||
history,
|
history,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user