Fixed Bug in TeamRankingListPoints

This commit is contained in:
Maximilian Leopold 2019-06-05 16:11:56 +02:00
parent 9c328b0fe4
commit 7380e0e5dc
2 changed files with 4 additions and 3 deletions

View File

@ -364,7 +364,7 @@
.then((response) => {
console.log("createTeam: " + response);
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {
message: "Das Team " + this.newTeamName + " wurde erfolgreich erstellt!",
message: "Das Team \"" + this.newTeamName + "\" wurde erfolgreich erstellt!",
title: "Teamerstellung",
color: "blue"
});

View File

@ -463,7 +463,8 @@ public class Controller {
logger.debug("/api/getTeamRankingList Convert Object to TeamRankingListHelper");
for (Object[] obj : rankingTeams) {
BigDecimal i = (BigDecimal) obj[1];
TeamRankingListHelper tmp = new TeamRankingListHelper((String) obj[0], i.intValue());
logger.debug("/api/getTeamRankingList Team: " + obj[0] + ", Points: " + obj[1]);
TeamRankingListHelper tmp = new TeamRankingListHelper((String) obj[0], i.intValue() / 2);
System.out.println(tmp);
sendBackTeams.add(tmp);
}
@ -708,7 +709,7 @@ public class Controller {
for (TeamInvite teamInvite : teamInvites) {
teamInviteRepository.delete(teamInvite);
}
teamRepository.delete(team);
teamRepository.deleteById(team.getId());
}
return ResponseEntity.status(200).body("Ok");