Due to changes in Client vs. Server Evaluation in EF, this statement could not be evaluated on the server-side
This commit is contained in:
Christopher Demicoli 2020-02-19 11:44:43 +01:00 committed by GitHub
parent ebb5f3b37b
commit 7172e9c3d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.Any(x => x.UserName.Equals("Api", StringComparison.CurrentCultureIgnoreCase));
var apiUserExists = Users.ToList().Any(x => x.UserName.Equals("Api", StringComparison.CurrentCultureIgnoreCase));
if (!apiUserExists)
{
Users.Add(new OmbiUser
@ -219,4 +219,4 @@ namespace Ombi.Store.Context
}
}
}
}
}