Fixed Bug in TeamRankingListPoints
This commit is contained in:
parent
9c328b0fe4
commit
7380e0e5dc
@ -364,7 +364,7 @@
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
console.log("createTeam: " + response);
|
console.log("createTeam: " + response);
|
||||||
this.$store.commit('dialog/NEW_MESSAGE_DIALOG', {
|
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",
|
title: "Teamerstellung",
|
||||||
color: "blue"
|
color: "blue"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -463,7 +463,8 @@ public class Controller {
|
|||||||
logger.debug("/api/getTeamRankingList Convert Object to TeamRankingListHelper");
|
logger.debug("/api/getTeamRankingList Convert Object to TeamRankingListHelper");
|
||||||
for (Object[] obj : rankingTeams) {
|
for (Object[] obj : rankingTeams) {
|
||||||
BigDecimal i = (BigDecimal) obj[1];
|
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);
|
System.out.println(tmp);
|
||||||
sendBackTeams.add(tmp);
|
sendBackTeams.add(tmp);
|
||||||
}
|
}
|
||||||
@ -708,7 +709,7 @@ public class Controller {
|
|||||||
for (TeamInvite teamInvite : teamInvites) {
|
for (TeamInvite teamInvite : teamInvites) {
|
||||||
teamInviteRepository.delete(teamInvite);
|
teamInviteRepository.delete(teamInvite);
|
||||||
}
|
}
|
||||||
teamRepository.delete(team);
|
teamRepository.deleteById(team.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
return ResponseEntity.status(200).body("Ok");
|
return ResponseEntity.status(200).body("Ok");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user