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}")]
|
[Route("[action]/{raidId}/{userId}")]
|
||||||
public ActionResult IsSignUpAllowed(int raidId, ulong userId)
|
public ActionResult IsSignUpAllowed(int raidId, ulong userId)
|
||||||
{
|
{
|
||||||
Raid raid = _raidService.GetRaid(raidId);
|
|
||||||
if(!_raidService.IsRaidSignUpAllowed(userId, raidId, out string errorMessage))
|
if(!_raidService.IsRaidSignUpAllowed(userId, raidId, out string errorMessage))
|
||||||
{
|
{
|
||||||
return Problem(errorMessage);
|
return Problem(errorMessage);
|
||||||
|
|
|
@ -243,7 +243,10 @@ namespace Lieb.Data
|
||||||
apiReminder.UserIds = new List<ulong>();
|
apiReminder.UserIds = new List<ulong>();
|
||||||
foreach(RaidSignUp signUp in raid.SignUps)
|
foreach(RaidSignUp signUp in raid.SignUps)
|
||||||
{
|
{
|
||||||
apiReminder.UserIds.Add(signUp.LiebUserId);
|
if(signUp.LiebUserId > 0)
|
||||||
|
{
|
||||||
|
apiReminder.UserIds.Add(signUp.LiebUserId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return apiReminder;
|
return apiReminder;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace Lieb.Models.GuildWars2.Raid
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
[StringLength(1000, ErrorMessage = "Message too long (1000 character limit).")]
|
[StringLength(1000, ErrorMessage = "Message too long (1000 character limit).")]
|
||||||
public string Message { get; set; }
|
public string Message { get; set; } = string.Empty;
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public double HoursBeforeRaid { get; set; }
|
public double HoursBeforeRaid { get; set; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue