mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 19:40:05 -07:00
Fixes #3399
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:
parent
ebb5f3b37b
commit
7172e9c3d7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue