fixed Add external user command

This commit is contained in:
Sarah Faey 2022-11-15 22:11:21 +01:00
parent a504925752
commit f40903851e
9 changed files with 122 additions and 39 deletions

View file

@ -240,7 +240,7 @@ namespace Lieb.Data
AccountName = signUp.GuildWars2Account.AccountName,
Status = status,
UserName = signUp.LiebUser.Name,
UserId = signUp.LiebUserId
UserId = signUp.LiebUserId.Value
});
}
}
@ -274,9 +274,9 @@ namespace Lieb.Data
apiReminder.UserIds = new List<ulong>();
foreach(RaidSignUp signUp in raid.SignUps)
{
if(signUp.LiebUserId > 0)
if(signUp.LiebUserId.HasValue)
{
apiReminder.UserIds.Add(signUp.LiebUserId);
apiReminder.UserIds.Add(signUp.LiebUserId.Value);
}
}
return apiReminder;