1
0
mirror of synced 2025-01-19 00:04:05 +01:00

Minor fixes

This commit is contained in:
S-Sebb 2024-06-06 03:29:12 +01:00
parent c3b5e11739
commit 55f45ca733
2 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,7 @@
public class SongLeaderboardResponse
{
public List<SongLeaderboard> LeaderboardData { get; set; }
public List<SongLeaderboard> LeaderboardData { get; set; } = new();
public int CurrentPage { get; set; }
public int TotalPages { get; set; }
}

View File

@ -4,14 +4,12 @@ using GameDatabase.Context;
using SharedProject.Models;
using SharedProject.Models.Responses;
using Swan.Mapping;
using TaikoLocalServer.Controllers.Api;
using SharedProject.Utils;
namespace TaikoLocalServer.Services;
public class AuthService(TaikoDbContext context) : IAuthService
{
private readonly UserSettingsController _userSettingsController;
public async Task<Card?> GetCardByAccessCode(string accessCode)
{
return await context.Cards.FindAsync(accessCode);