Skip to content

Commit

Permalink
Move to mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlihou committed Aug 24, 2023
1 parent 38f0428 commit 77ab05e
Show file tree
Hide file tree
Showing 38 changed files with 805 additions and 6,566 deletions.
2 changes: 1 addition & 1 deletion FoodPicker.Infrastructure/Data/MealVoteRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public IEnumerable<MealVote> GetVotesForWeekAsEnumerable(MealWeek week)

public async Task<List<MealVote>> GetUserVotesForWeekAsync(MealWeek week, string userId, CancellationToken cancellationToken = default)
{
return await _db.MealVotes.Where(x => x.UserId == userId && x.Meal.MealWeekId == week.Id && x.VoteOption != null)
return await _db.MealVotes.Where(x => x.UserId == userId && x.Meal.MealWeekId == week.Id)
.ToListAsync(cancellationToken);
}

Expand Down
9 changes: 1 addition & 8 deletions FoodPicker.Infrastructure/Models/MealVote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,8 @@ public class MealVote : BaseEntity
public string UserId { get; set; }
public ApplicationUser User { get; set; }

public int VoteOptionId { get; set; }
public int? VoteOptionId { get; set; }
public VoteOption VoteOption { get; set; }
public string Comment { get; set; }
}

public enum MealVoteOption
{
Yes = 1,
Maybe = 2,
No = 3
}
}

This file was deleted.

Loading

0 comments on commit 77ab05e

Please sign in to comment.