forked from Sarah/Lieb-Website
Added Polls and locking raids if not enough users are signed up
needs testing
This commit is contained in:
parent
32af72a262
commit
ccb276a265
14 changed files with 289 additions and 8 deletions
|
@ -306,8 +306,15 @@ namespace Lieb.Data
|
|||
|
||||
public static ApiRaid ConvertRaid(Raid raid)
|
||||
{
|
||||
string title = raid.Title;
|
||||
if (raid.SignUps.Count < raid.MinUsers
|
||||
&& raid.MinUserDeadLineUTC.UtcDateTime > DateTimeOffset.UtcNow)
|
||||
{
|
||||
title = $"The raid was canceled because of not enough sign ups.\n\n{raid.Title}";
|
||||
}
|
||||
|
||||
ApiRaid apiRaid = new ApiRaid(){
|
||||
Title = raid.Title,
|
||||
Title = title,
|
||||
Description = raid.Description,
|
||||
Guild = raid.Guild,
|
||||
Organizer = raid.Organizer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue