mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Fix heart count on users in-game
This commit is contained in:
parent
2924597c7b
commit
d41b518fc2
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ public class GameUser : ILbpSerializable, INeedsPreparationForSerialization
|
|||
PlaylistCount = database.Playlists.Count(p => p.CreatorId == this.UserId),
|
||||
ReviewCount = database.Reviews.Count(r => r.ReviewerId == this.UserId),
|
||||
CommentCount = database.Comments.Count(c => c.TargetId == this.UserId && c.Type == CommentType.Profile),
|
||||
HeartCount = database.HeartedProfiles.Count(h => h.HeartedUserId == this.UserId),
|
||||
PhotosByMeCount = database.Photos.Count(p => p.CreatorId == this.UserId),
|
||||
PhotosWithMeCount = database.Photos.Include(p => p.PhotoSubjects)
|
||||
.Count(p => p.PhotoSubjects.Any(ps => ps.UserId == this.UserId)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue