mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	fix: fixed .clubinfo rank
This commit is contained in:
		@@ -123,7 +123,7 @@ public partial class Xp
 | 
			
		||||
                               })
 | 
			
		||||
                               .ToList();
 | 
			
		||||
 | 
			
		||||
            var rank = _service.GetClubRank(club.Id);
 | 
			
		||||
            var rank = await _service.GetClubRankAsync(club.Id);
 | 
			
		||||
 | 
			
		||||
            await Response()
 | 
			
		||||
                  .Paginated()
 | 
			
		||||
 
 | 
			
		||||
@@ -134,7 +134,7 @@ public class ClubService : INService, IClubService
 | 
			
		||||
        return club is not null;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public async Task<int> GetClubRank(int clubId)
 | 
			
		||||
    public async Task<int> GetClubRankAsync(int clubId)
 | 
			
		||||
    {
 | 
			
		||||
        await using var uow = _db.GetDbContext();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -23,7 +23,7 @@ public interface IClubService
 | 
			
		||||
    ClubKickResult Kick(ulong kickerId, string userName, out ClubInfo club);
 | 
			
		||||
    List<ClubInfo> GetClubLeaderboardPage(int page);
 | 
			
		||||
    Task<ClubRenameResult> RenameClubAsync(ulong userId, string clubName);
 | 
			
		||||
    Task<int> GetClubRank(int clubId);
 | 
			
		||||
    Task<int> GetClubRankAsync(int clubId);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
public enum ClubApplyResult
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user