removed warnings
This commit is contained in:
parent
56cb43a479
commit
a47bc3207d
3 changed files with 5 additions and 3 deletions
|
@ -38,7 +38,6 @@ namespace Lieb.Controllers
|
|||
[Route("[action]/{raidId}/{userId}")]
|
||||
public ActionResult IsSignUpAllowed(int raidId, ulong userId)
|
||||
{
|
||||
Raid raid = _raidService.GetRaid(raidId);
|
||||
if(!_raidService.IsRaidSignUpAllowed(userId, raidId, out string errorMessage))
|
||||
{
|
||||
return Problem(errorMessage);
|
||||
|
|
|
@ -243,7 +243,10 @@ namespace Lieb.Data
|
|||
apiReminder.UserIds = new List<ulong>();
|
||||
foreach(RaidSignUp signUp in raid.SignUps)
|
||||
{
|
||||
apiReminder.UserIds.Add(signUp.LiebUserId);
|
||||
if(signUp.LiebUserId > 0)
|
||||
{
|
||||
apiReminder.UserIds.Add(signUp.LiebUserId);
|
||||
}
|
||||
}
|
||||
return apiReminder;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Lieb.Models.GuildWars2.Raid
|
|||
|
||||
[Required]
|
||||
[StringLength(1000, ErrorMessage = "Message too long (1000 character limit).")]
|
||||
public string Message { get; set; }
|
||||
public string Message { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public double HoursBeforeRaid { get; set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue