Not null group response

This commit is contained in:
BuildTools
2020-12-01 17:21:54 +01:00
parent c2c82b75ba
commit 7e45da1306
2 changed files with 4 additions and 5 deletions

View File

@ -64,9 +64,6 @@ public class GroupService {
public HashMap<Long, Integer> getTakenPlaces(List<Groups> groups) {
HashMap<Long, Integer> response = new HashMap<>();
// List<Object[]> respoonses = this.repo.getAssignedAmounts(
// groups.stream().filter(Objects::nonNull).map(Groups::getId).collect(Collectors.toList()));
List<Object[]> respoonses = this.repo
.getAssignedAmounts(groups.stream().filter(Objects::nonNull).map(new Function<Groups, Long>() {
@Override