Skip to content

Commit

Permalink
Handle EF regression
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Nov 24, 2024
1 parent 66d817a commit 67e4822
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ILogger<StorySkipService> logger
public async Task IncreaseFortLevels()
{
List<DbFortBuild> userForts = await apiContext
.PlayerFortBuilds.Where(x => FortConfigs.Keys.Contains(x.PlantId))
.PlayerFortBuilds.Where(x => FortConfigs.Keys.AsEnumerable().Contains(x.PlantId))
.ToListAsync();

int currentFortLevel = await fortDataService.GetTotalFortLevel();
Expand Down Expand Up @@ -263,7 +263,7 @@ public async Task<int> ProcessStoryCompletions()
public async Task RewardCharas()
{
List<DbPlayerCharaData> userCharas = await apiContext
.PlayerCharaData.Where(x => CharasList.Contains(x.CharaId))
.PlayerCharaData.Where(x => CharasList.AsEnumerable().Contains(x.CharaId))
.ToListAsync();

List<DbPlayerCharaData> newUserCharas = [];
Expand Down Expand Up @@ -313,7 +313,7 @@ public async Task RewardCharas()
public async Task RewardDragons()
{
List<DbPlayerDragonData> userDragons = await apiContext
.PlayerDragonData.Where(x => DragonList.Contains(x.DragonId))
.PlayerDragonData.Where(x => DragonList.AsEnumerable().Contains(x.DragonId))
.ToListAsync();

List<DbPlayerDragonData> newUserDragons = [];
Expand Down

0 comments on commit 67e4822

Please sign in to comment.