Fixed another EF client side execution bug

This commit is contained in:
tidusjar 2020-02-25 16:40:12 +00:00
parent 01217cfe70
commit 1107c4a366
8 changed files with 33 additions and 12 deletions

View file

@ -61,7 +61,7 @@ namespace Ombi.Store.Context
using (var tran = Database.BeginTransaction())
{
// Make sure we have the API User
var apiUserExists = Users.ToList().Any(x => x.UserName.Equals("Api", StringComparison.CurrentCultureIgnoreCase));
var apiUserExists = Users.ToList().Any(x => x.NormalizedUserName == "API");
if (!apiUserExists)
{
Users.Add(new OmbiUser