Skip to content

Commit

Permalink
fix backoffice
Browse files Browse the repository at this point in the history
  • Loading branch information
Atralupus committed Feb 25, 2025
1 parent aff62ea commit bb8883d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 3 additions & 2 deletions ArenaService.BackOffice/Pages/ManageSeasons.razor
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,16 @@ else
roundMessage = "라운드 준비 중...";
try
{
var round = await RoundRepo.GetRoundAsync(roundId, q => q.Include(r => r.Season).ThenInclude(s => s.Rounds));
var round = await RoundRepo.GetRoundAsync(roundId, q => q.Include(r => r.Season));
var season = await SeasonRepo.GetSeasonAsync(round!.SeasonId, q => q.Include(s => s.Rounds));

if (round == null || round.Season == null)
{
roundMessage = "❌ 라운드를 찾을 수 없습니다.";
return;
}

await RoundPreparationService.PrepareNextRoundWithSnapshotAsync((round.Season, round));
await RoundPreparationService.PrepareNextRoundWithSnapshotAsync((season, round));

roundMessage = "✅ 다음 라운드 준비 완료!";
NavigationManager.NavigateTo(NavigationManager.Uri, forceLoad: true);
Expand Down
4 changes: 0 additions & 4 deletions ArenaService.BackOffice/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"ConnectionStrings": {
"DefaultConnection": "Host=localhost;Port=5432;Database=odin_arena;Username=local_test;Password=password"
},
"Redis": {
"Host": "test",
"RankingDbNumber": -1
},
"Logging": {
"LogLevel": {
"Default": "Debug",
Expand Down

0 comments on commit bb8883d

Please sign in to comment.