diff --git a/Application/Game/Card/Read/ReadMusicQuery.cs b/Application/Game/Card/Read/ReadMusicQuery.cs index 1643fd2..3e2e1e0 100644 --- a/Application/Game/Card/Read/ReadMusicQuery.cs +++ b/Application/Game/Card/Read/ReadMusicQuery.cs @@ -21,8 +21,6 @@ public class ReadMusicQueryHandler : RequestHandlerBase { var dto = unlock.MusicToDto(); dto.Id = i; - dto.CalcFlag = dto.NewFlag; - dto.NewFlag = 0; return dto; }); diff --git a/Domain/Entities/MusicUnlock.cs b/Domain/Entities/MusicUnlock.cs index 74b245c..e9706e2 100644 --- a/Domain/Entities/MusicUnlock.cs +++ b/Domain/Entities/MusicUnlock.cs @@ -15,4 +15,6 @@ public partial class MusicUnlock public bool NewFlag { get; set; } public bool UseFlag { get; set; } + + public bool CalcFlag { get; set; } } diff --git a/Infrastructure/Migrations/CardDbContextModelSnapshot.cs b/Infrastructure/Migrations/CardDbContextModelSnapshot.cs index 7512bfc..8d059ef 100644 --- a/Infrastructure/Migrations/CardDbContextModelSnapshot.cs +++ b/Infrastructure/Migrations/CardDbContextModelSnapshot.cs @@ -298,7 +298,7 @@ namespace Infrastructure.Migrations b.HasKey("MatchId"); - b.ToTable("OnlineMatches"); + b.ToTable("OnlineMatches", (string)null); }); modelBuilder.Entity("Domain.Entities.OnlineMatchEntry", b => @@ -368,7 +368,7 @@ namespace Infrastructure.Migrations b.HasKey("MatchId", "EntryId"); - b.ToTable("OnlineMatchEntries"); + b.ToTable("OnlineMatchEntries", (string)null); }); modelBuilder.Entity("Domain.Entities.PlayNumRank", b => diff --git a/Infrastructure/Persistence/MusicDbContext.cs b/Infrastructure/Persistence/MusicDbContext.cs index 4be3a46..06faec2 100644 --- a/Infrastructure/Persistence/MusicDbContext.cs +++ b/Infrastructure/Persistence/MusicDbContext.cs @@ -73,6 +73,7 @@ public partial class MusicDbContext : DbContext, IMusicDbContext entity.Property(e => e.EndDate).HasColumnName("end_date"); entity.Property(e => e.NewFlag).HasColumnName("new_flag"); entity.Property(e => e.UseFlag).HasColumnName("use_flag"); + entity.Property(e => e.CalcFlag).HasColumnName("calc_flag"); }); OnModelCreatingPartial(modelBuilder); diff --git a/MainServer/Configurations/server.json b/MainServer/Configurations/server.json index b7f229b..bb8d1e0 100644 --- a/MainServer/Configurations/server.json +++ b/MainServer/Configurations/server.json @@ -2,13 +2,13 @@ "Kestrel": { "Endpoints": { "Http": { - "Url": "http://0.0.0.0:80" + "Url": "http://*:80" }, "Https": { - "Url": "https://0.0.0.0:443" + "Url": "https://*:443" }, "Test": { - "Url": "http://0.0.0.0:5107" + "Url": "http://*:5107" } } }, diff --git a/MainServer/Program.cs b/MainServer/Program.cs index df33e65..347306d 100644 --- a/MainServer/Program.cs +++ b/MainServer/Program.cs @@ -143,7 +143,7 @@ try app.Run(); } -catch (Exception ex) +catch (Exception ex) when (ex.GetType().Name is not "HostAbortedException") { Log.Fatal(ex, "Unhandled exception in startup"); }