|
|
@@ -214,7 +214,7 @@ public class CollectionService {
|
|
|
List<Like> likes = new ArrayList<>();
|
|
|
List<Appointment> appointments = new ArrayList<>();
|
|
|
if (SecurityUtils.getAuthenticatedUser() != null) {
|
|
|
- likes.addAll(likeRepo.findByUserId(SecurityUtils.getAuthenticatedUser().getId()));
|
|
|
+ likes.addAll(likeRepo.findByUserIdAndCollectionIdIsNotNull(SecurityUtils.getAuthenticatedUser().getId()));
|
|
|
appointments.addAll(appointmentRepo.findByUserId(SecurityUtils.getAuthenticatedUser().getId()));
|
|
|
}
|
|
|
return collections.stream().parallel().map(collection -> {
|