fixed error with logic to vote at the end of challenge
This commit is contained in:
@@ -36,7 +36,7 @@ public class PatchVoteEndpoint(UserGroupsRepository userGroupsRepository, UserSe
|
||||
return;
|
||||
}
|
||||
|
||||
if (member.Group!.StartedVote is not null && member.Group.StartedVote.Value.AddHours(member.Group.VoteDuration) > DateTime.Now)
|
||||
if (member.Group!.StartedVote is not null && member.Group.StartedVote.Value.AddHours(member.Group.VoteDuration) < DateTime.Now)
|
||||
{
|
||||
await Send.StringAsync("Le vote est terminé", 400, cancellation: ct);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user