Refactor score table to leaderboard, update related models and services for consistency
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-01-08 15:08:28 +01:00
parent caff26d7ca
commit a9bb7cfa33
14 changed files with 361 additions and 138 deletions
@@ -312,4 +312,15 @@ public class FriendshipService {
return result;
}
public List<User> getAcceptedFriends(User user) {
List<Friendship> friendships = friendshipRepository.findByUserIdAndStatus(user.getId(), FriendShipStatus.ACCEPTED);
List<User> friends = new ArrayList<>();
for (Friendship friendship : friendships) {
friends.add(friendship.getFriend());
}
return friends;
}
}