Due to changes in Client vs. Server Evaluation in EF, this statement could not be evaluated on the server-side
pull/3400/head
Christopher Demicoli 5 years ago committed by GitHub
parent ebb5f3b37b
commit 7172e9c3d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save