fixed sign up error

This commit is contained in:
Sarah Faey 2022-12-05 17:47:45 +01:00
parent 7394d120e1
commit 9b8e85e871
2 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ namespace Lieb.Data
using var context = _contextFactory.CreateDbContext();
LiebUser user = context.LiebUsers
.Include(u => u.GuildWars2Accounts)
.FirstOrDefault(u => u.Id == userId, new LiebUser());
.FirstOrDefault(u => u.Id == userId);
if(user == null) return new GuildWars2Account();