mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 19:40:05 -07:00
Fixed another EF client side execution bug
This commit is contained in:
parent
01217cfe70
commit
1107c4a366
8 changed files with 33 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue