mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[reputation] Fetch only positive reputation for rating.
This commit is contained in:
@@ -58,7 +58,7 @@ public class ReputationService : IReputation
|
||||
public async Task<IEnumerable<IReputationEntity>> GetChatRatingAsync(Chat chat, int limit = 10, int offset = 0)
|
||||
{
|
||||
return await _reputationContext.UserReputation
|
||||
.Where(r => r.ChatId == chat.Id && r.Value != 0D)
|
||||
.Where(r => r.ChatId == chat.Id && r.Value > 0D)
|
||||
.OrderByDescending(r => r.Value)
|
||||
.Skip(offset)
|
||||
.Take(limit)
|
||||
|
||||
Reference in New Issue
Block a user