mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
commit
7a50bc6bd0
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue