1
0
mirror of synced 2024-11-24 06:20:12 +01:00

Fix new and calc flag for music

Add column to music.db3
Minor fix in Program.cs
This commit is contained in:
asesidaa 2023-11-05 18:35:26 +08:00
parent 7edcd07723
commit 0896e92598
6 changed files with 9 additions and 8 deletions

View File

@ -21,8 +21,6 @@ public class ReadMusicQueryHandler : RequestHandlerBase<ReadMusicQuery, string>
{ {
var dto = unlock.MusicToDto(); var dto = unlock.MusicToDto();
dto.Id = i; dto.Id = i;
dto.CalcFlag = dto.NewFlag;
dto.NewFlag = 0;
return dto; return dto;
}); });

View File

@ -15,4 +15,6 @@ public partial class MusicUnlock
public bool NewFlag { get; set; } public bool NewFlag { get; set; }
public bool UseFlag { get; set; } public bool UseFlag { get; set; }
public bool CalcFlag { get; set; }
} }

View File

@ -298,7 +298,7 @@ namespace Infrastructure.Migrations
b.HasKey("MatchId"); b.HasKey("MatchId");
b.ToTable("OnlineMatches"); b.ToTable("OnlineMatches", (string)null);
}); });
modelBuilder.Entity("Domain.Entities.OnlineMatchEntry", b => modelBuilder.Entity("Domain.Entities.OnlineMatchEntry", b =>
@ -368,7 +368,7 @@ namespace Infrastructure.Migrations
b.HasKey("MatchId", "EntryId"); b.HasKey("MatchId", "EntryId");
b.ToTable("OnlineMatchEntries"); b.ToTable("OnlineMatchEntries", (string)null);
}); });
modelBuilder.Entity("Domain.Entities.PlayNumRank", b => modelBuilder.Entity("Domain.Entities.PlayNumRank", b =>

View File

@ -73,6 +73,7 @@ public partial class MusicDbContext : DbContext, IMusicDbContext
entity.Property(e => e.EndDate).HasColumnName("end_date"); entity.Property(e => e.EndDate).HasColumnName("end_date");
entity.Property(e => e.NewFlag).HasColumnName("new_flag"); entity.Property(e => e.NewFlag).HasColumnName("new_flag");
entity.Property(e => e.UseFlag).HasColumnName("use_flag"); entity.Property(e => e.UseFlag).HasColumnName("use_flag");
entity.Property(e => e.CalcFlag).HasColumnName("calc_flag");
}); });
OnModelCreatingPartial(modelBuilder); OnModelCreatingPartial(modelBuilder);

View File

@ -2,13 +2,13 @@
"Kestrel": { "Kestrel": {
"Endpoints": { "Endpoints": {
"Http": { "Http": {
"Url": "http://0.0.0.0:80" "Url": "http://*:80"
}, },
"Https": { "Https": {
"Url": "https://0.0.0.0:443" "Url": "https://*:443"
}, },
"Test": { "Test": {
"Url": "http://0.0.0.0:5107" "Url": "http://*:5107"
} }
} }
}, },

View File

@ -143,7 +143,7 @@ try
app.Run(); app.Run();
} }
catch (Exception ex) catch (Exception ex) when (ex.GetType().Name is not "HostAbortedException")
{ {
Log.Fatal(ex, "Unhandled exception in startup"); Log.Fatal(ex, "Unhandled exception in startup");
} }